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: Error message when loaded by Scholarly #10

Open
Tracked by #3
danuccio opened this issue Oct 30, 2021 · 1 comment
Open
Tracked by #3

Fake User Agent: Error message when loaded by Scholarly #10

danuccio opened this issue Oct 30, 2021 · 1 comment

Comments

@danuccio
Copy link
Contributor

No description provided.

@danuccio
Copy link
Contributor Author

danuccio commented Oct 30, 2021

When Scholarly loads Fake-User-Agent for the first time after turning on a computer, the following message appears:

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 "/home/governour/.local/lib/python3.6/site-packages/fake_useragent/utils.py", line 154, in load for item in get_browsers(verify_ssl=verify_ssl): File "/home/governour/.local/lib/python3.6/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

The developers of Scholarly have looked into this and do not believe it causes any real problem.
scholarly-python-package/scholarly#313

There appears to be ways to suppress the message, however, doing so would also likely obscure other error messages if/when they occur.

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