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

Fake User Agent Issues #80

Open
SecJesus opened this issue Jan 3, 2020 · 2 comments
Open

Fake User Agent Issues #80

SecJesus opened this issue Jan 3, 2020 · 2 comments

Comments

@SecJesus
Copy link

SecJesus commented Jan 3, 2020

Hello,

Thank you for creating such a straight forward module for using Google's search. Im using Python2.7 and when trying a simple google.search(), I received this error

FakeUserAgentError: Can not load data from cache server

the UserAgent() call is in utils.py at line 432. I had to comment this out and just add a Mozilla string for the header variable and it worked. I am guessing there is some issue from the Fake User agent module.

@ghost
Copy link

ghost commented Mar 2, 2020

Got the same issue on Mac, but works fine on Windows.

Error occurred during loading data. Trying to use cache server https://fake-useragent.herokuapp.com/browsers/0.1.11

@qysnn
Copy link

qysnn commented Jul 20, 2021

Same issue on Windows 10

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:\ProgramData\Anaconda3\lib\site-packages\fake_useragent\utils.py", line 154, in load
    for item in get_browsers(verify_ssl=verify_ssl):
  File "C:\ProgramData\Anaconda3\lib\site-packages\fake_useragent\utils.py", line 99, in get_browsers
    html = html.split('<table class="w3-table-all notranslate">')[1]
IndexError: list index out of range

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

2 participants