Xqt added a comment.
The defauls User-Agent was changed in Pywikibot 11 to:
user_agent_format = ('{username}/{script} ({script_comments}) {pwb} '
'({revision}) {python} {http_backend}')
Here, {script_comments} either contains the destination wiki or its URL. As
far as I know the new default UA format string prevents the 429 issue on all WM
sites.
See also:
-
https://doc.wikimedia.org/pywikibot/master/api_ref/pywikibot.config.html#account-settings
-
https://doc.wikimedia.org/pywikibot/master/api_ref/pywikibot.comms.html#comms.http.user_agent
- https://www.mediawiki.org/wiki/Manual:Pywikibot/User-agent
Isn't ErfgoedBot runnig an older Pywikibot release (T409003
<https://phabricator.wikimedia.org/T409003>)?
I am not opposed to adding an environment variable to configure the user
agent. However, the default setting should always prevent the rate limit and
comply the WM UA policy. Therefore, it would be more helpful to improve the
default UA format string.
TASK DETAIL
https://phabricator.wikimedia.org/T422276
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]