Skip to content

MediaWiki Bot Passwords

Lu Liu edited this page Sep 17, 2020 · 2 revisions

Official manual of bot passwords: https://www.mediawiki.org/wiki/Manual:Bot_passwords

Bot passwords allow applications or bots to log in with a simple username-password combination even if the wiki employs some extra authorization steps that the bot framework could not handle; they also allow limiting the permissions given to the bot (e.g. the bot might be allowed to edit articles but not to create new ones). Clients using bot passwords can only access the API, not the normal web interface.

For a given Wikibase instance, you can create bot passwords at https://${Wikibase site}/wiki/Special:BotPasswords.

We take Wikidata for example here:

  1. Goto https://www.mediawiki.org/wiki/Special:BotPasswords.

  2. Type the bot name (e.g. OpenRefine) and click the "Create" button.

  3. For "Applicable grants", check "High-volume editing", "Edit existing pages" and "Create, edit, and move pages".

  4. Click the "Create" button again.

Finally, you'll get a bot password, which can be used to login to the corresponding Wikibase instance in OpenRefine. You should write down the username and password somewhere for later use.

Clone this wiki locally