bisohns / search-engine-parser

Lightweight package to query popular search engines and scrape for result titles, links and descriptions
https://search-engine-parser.readthedocs.io
448 stars 86 forks source link

list index out of range #159

Open dadashzadeh opened 2 years ago

dadashzadeh commented 2 years ago

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>

Alexell commented 1 year ago

I get the same error from time to time.

moewiee commented 1 year ago

upgrade fake-useragent version to 0.1.13 worked for me.

pip3 install fake-useragent==0.1.13