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

list index out of range #159

Open
dadashzadeh opened this issue May 5, 2022 · 2 comments
Open

list index out of range #159

dadashzadeh opened this issue May 5, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@dadashzadeh
Copy link

Error occurred during loading data. Trying to use cache server https://fake-useragent.herokuapp.com/browsers/0.1.11
Traceback (most recent call last):
File "C:\Program Files\Python39\lib\site-packages\fake_useragent\utils.py", line 154, in load
for item in get_browsers(verify_ssl=verify_ssl):
File "C:\Program Files\Python39\lib\site-packages\fake_useragent\utils.py", line 99, in get_browsers
html = html.split('

')[1]
IndexError: list index out of range
<search_engine_parser.core.base.SearchResult at 0x1f402d77ac0>

@dadashzadeh dadashzadeh added the bug Something isn't working label May 5, 2022
@Alexell
Copy link

Alexell commented Oct 20, 2022

I get the same error from time to time.

@moewiee
Copy link

moewiee commented Dec 2, 2022

upgrade fake-useragent version to 0.1.13 worked for me.

pip3 install fake-useragent==0.1.13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants