We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Trying to source logos for example from wikipedia can run into:
requests.exceptions.HTTPError: 403 Client Error: Forbidden. Please comply with the User-Agent policy: https://meta.wikimedia.org/wiki/User-Agent_policy
Which states that there must be user-agent information or scripts may be blocked without notice. The expected format is
<client name>/<version> (<contact information>) <library/framework name>/<version> [<library name>/<version> ...]
They provide a template for python:
import requests url = 'https://example/...' headers = {'User-Agent': 'CoolBot/0.0 (https://example.org/coolbot/; [email protected])'} response = requests.get(url, headers=headers)
Suggestions:
{'User-Agent': 'pybadges/3.0.0 (https://github.com/google/pybadges/)}
--user-agent
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Trying to source logos for example from wikipedia can run into:
Which states that there must be user-agent information or scripts may be blocked without notice. The expected format is
They provide a template for python:
Suggestions:
{'User-Agent': 'pybadges/3.0.0 (https://github.com/google/pybadges/)}
--user-agent
option to allow passing this information manually.The text was updated successfully, but these errors were encountered: