Skip to content

Consider following Wikimedia's user-agent policy and set a digipres.github.io specific User-Agent header #31

@ross-spencer

Description

@ross-spencer

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions