[feature-request] Allow user to specify user agent in CLI options #232
CrazySqueak
started this conversation in
Ideas
Replies: 2 comments 1 reply
-
patches: |
Beta Was this translation helpful? Give feedback.
1 reply
-
Please someone merge these into mediawiki-dump-generator. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello there, sorry if this isn't the right place to post this.
Rationale
Currently, the dump generator attempts to mimic a browser user agent.
In the MediaWiki API documentation, it is recommended that the user sets a custom, descriptive user agent identifying themselves, and especially discourages mimicking a browser user agent, as doing so could be misconstrued as malicious behaviour.
Currently, changing the user agent requires finding a specific function hidden in the code and editing it to replace the list of user agents. This is obtuse, and especially hard for a user to figure out when all they can tell is that they're getting HTTP 403 errors.
Proposed Feature
The user should be able to use a command-line argument to specify a custom user agent to be used instead. For example, passing the command-line argument
--user-agent="MyNameBot/1.2 ([email protected]) MediaWikiClientTools/3"
would then change the user agent to such.
Beta Was this translation helpful? Give feedback.
All reactions