fititnt / wiki_as_base-py

[MVP] Use MediaWiki Wiki page content as read-only database. Python library implementation. See https://github.com/fititnt/openstreetmap-serverless-functions/tree/main/function/wiki-as-base
The Unlicense
0 stars 0 forks source link

User agent enviroment variable for users #4

Open fititnt opened 1 year ago

fititnt commented 1 year ago

The CLI tool already have a custom user agent, but we migth want to expose for the user preferable only the "contact part" of MediaWiki suggested user agent for bots.

Currently (version until v0.5.8) uses USER_AGENT = os.getenv("USER_AGENT", "wiki-as-base/" + _REFVER), which is a generic and the user might overwrite library version.