Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic Example not working #8

Open
CodingTil opened this issue Jan 5, 2023 · 0 comments
Open

Basic Example not working #8

CodingTil opened this issue Jan 5, 2023 · 0 comments

Comments

@CodingTil
Copy link

For the basic example

from lrc_kit import ComboLyricsProvider, SearchRequest

engine = ComboLyricsProvider()
search = SearchRequest('eminem', 'stan')
result, engine_used = engine.search(search)
result.export('stan.lrc')

I get the following error:

ERROR:root:'NoneType' object has no attribute 'find_all'
Traceback (most recent call last):
  File "/home/a/test.py", line 6, in <module>
    result, engine_used = engine.search(search)
  File "/home/a/miniconda3/envs/b/lib/python3.9/site-packages/lrc_kit/providers.py", line 92, in search
    res = provider(**self.kwargs).search(search_request)
  File "/home/a/miniconda3/envs/b/lib/python3.9/site-packages/lrc_kit/providers.py", line 45, in search
    raise e
  File "/home/a/miniconda3/envs/b/lib/python3.9/site-packages/lrc_kit/providers.py", line 32, in search
    val, meta = self.raw_search(search_request)
  File "/home/a/miniconda3/envs/b/lib/python3.9/site-packages/lrc_kit/providers.py", line 358, in raw_search
    links = links.find_all('a')
AttributeError: 'NoneType' object has no attribute 'find_all'

Based on the source code, I need some API?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant