The Wikimedia user agent policy is here; https://meta.wikimedia.org/wiki/User-Agent_policy
I believe right now via:
|
r = requests.get(url, params = {'format': 'json', 'query': query}) |
they will see a generic python-requests header which I think just about passes their test. They do however recommend a format for User-agent:
User-Agent: CoolBot/0.0 (https://example.org/coolbot/; coolbot@example.org) generic-library/0.0 which may be a nicer way to play in their sandbox. I'd recommend it for PRONOM and other downloads too if one is so inclined.
I've only done a cursory glance of the code-base here, maybe there is an agent set somewhere that I am missing. Apologies if I've read that wrong.
NB. Is this script code a dead file?
maybe one for .gitignore?
The Wikimedia user agent policy is here; https://meta.wikimedia.org/wiki/User-Agent_policy
I believe right now via:
digipres.github.io/_sources/registries/wikidata/download-wikidata-formats.py
Line 36 in a1fb932
User-Agent: CoolBot/0.0 (https://example.org/coolbot/; coolbot@example.org) generic-library/0.0which may be a nicer way to play in their sandbox. I'd recommend it for PRONOM and other downloads too if one is so inclined.I've only done a cursory glance of the code-base here, maybe there is an agent set somewhere that I am missing. Apologies if I've read that wrong.
NB. Is this script code a dead file?
maybe one for
.gitignore?