issues
search
dahlia
/
wikidata
Wikidata client library for Python
https://pypi.org/project/Wikidata/
GNU General Public License v3.0
337
stars
31
forks
source link
Add headers compliant with Wikimedia's user-agent policy
#44
Open
marccarre
opened
2 years ago
marccarre
commented
2 years ago
Fixes #43.
Changelog
Add optional
user_agent
argument to
Client
's constructor.
If not provided, default
user_agent
to a value compliant with
Wikimedia's user-agent policy
.
Use
user_agent
as the value for the
User-Agent
HTTP header.
Fixes #43.
Changelog
user_agent
argument toClient
's constructor.user_agent
to a value compliant with Wikimedia's user-agent policy.user_agent
as the value for theUser-Agent
HTTP header.