Community Central
Register
Community Central

A bot is a piece of software that makes automated edits on a wiki and also helps normal users to make semi-automated edits. Bots are most often used to make repetitive edits to many pages, such as moving a group of pages to a new category, fixing links to disambiguation pages, or to search for misspelled words and replace them with correct ones.

If you want to use a bot, Fandom recommends registering a second account to use as your bot account. (We recommend against performing bot edits using your main account since it's easy to make mistakes and cause confusion.)

Bot flags[]

Showbots

As bots can make many edits during their run, their edits can overwhelm the Recent changes list, making it difficult to see and respond to edits by normal users. For this reason, bots that have been tested (for example, on a test wiki) and approved by a community can be given a bot flag. A bot flag is a setting in the MediaWiki software that hides bot edits from the Recent changes list. Bot edits can always be revealed by removing the "human" only filter or clicking "Show bots" in Recent Changes.

How can I flag an account as a bot?[]

Please contact Fandom Staff or your wiki's Wiki Representative to request a bot flag for a specific account.

  • If you are an admin of that community, please make an edit using your admin account to that bot's user page, to show your ownership and approval of it.
  • If you are not an admin of that community, your request should include a link to a public discussion that shows the local bureaucrat/admins approve the use and flagging of the bot.

A bureaucrat can also contact staff and request to flag accounts as bot. On certain communities, bureaucrats are also able to flag themselves and other users as bots, often for cleanup purposes or testing. It should be noted this ability is generally not handed out.

Important notes[]

Bots on Fandom must use a limited editing rate so that they don't overload Fandom's servers. For most bot programs, a rate throttle is built in, so you don't need to worry about this. However, if you find your bot making more than one edit per second, then it's time to slow it down.

A bot account's user profile and talk page or message wall should:

  • Clearly identify the account as a bot
  • Link to its owner's user talk page for questions
  • Encourage users to notify admin if its automated edits are causing damage to the community. Administrators can temporarily block the bot account and lift the block after the causes for the damaging edits are understood and fixed.

Checkpage[]

AWB

AutoWikiBrowser (AWB) has a user-friendly interface that allows for mass edits to be done effectively and easily.

AutoWikiBrowser (AWB) makes use of a whitelist called a "checkpage". On Fandom, if this page exists locally on the community (in the format of Project:AutoWikiBrowser/CheckPage), the bot's username (or the username the bot will run on) will need to be on this checkpage in order to operate on the wiki. If the checkpage does not exist, there is no restriction and AWB can be run without requiring the whitelist. This is done to restrict unauthorized bot programs from being run on communities.

Using Special:BotPasswords[]

BotPasswords

Bots that work via the API (e.g. Pywikibot) will need a BotPassword. Bot passwords give selective permissions to these tools that you can revoke if the password is lost or compromised.

  1. Log in to any wiki using your bot account. Users with separate accounts for regular editing and bot editing should log in via their bot account, rather than the one they use for normal editing.
  2. Navigate to Special:BotPasswords
  3. Fill in a "Bot name". This is used solely for logging in, so it can be anything. Useful examples include AWB if the password is for logging into AWB and Basic if the the password is only for basic rights. This name will be added as a suffix to your currently logged-in username, for example: JohnDoeBot@AWB.
  4. Select the desired permissions for this bot login. High-volume editing, Edit existing pages, and Create, edit, and move pages should be sufficient for most bot tasks. High-volume editing must be enabled if you want the edits your bot makes to be filterable as bot activity in Recent Changes.
    • Note: You can only successfully grant permissions that your bot account already has. For example, granting the "delete pages" permission where your bot account is not a content moderator or above will not actually grant your bot the ability to delete pages at that wiki.
  5. If desired, set allowed IP ranges.
  6. Click "Create".
  7. The bot username and generated password are displayed. This password will only be displayed on this page. Once you navigate away from this page, the password will not be retrievable.
    • If you ever lose your password, you can return to Special:BotPasswords to create a new password.
  8. Repeat this process for each desired bot password, such as one with many permissions for use at home and one with minimal permissions for use on a public computer.

When logging in using your bot, the username is the account name, the @ sign, and the bot name, and the password is simply the bot password. For example: JohnDoeBot@AWB as the username and botpassword as the password.

If an application requires the login to be the same as the username attempting to log in, the username is the account name, and the password is the bot name, the @ sign, and the bot password. For example: JohnDoe as the username and AWB@botpassword as the password.

Note: bots that are run through a web browser, like MassEdit, does not need a special BotPassword, but are instead logged in directly using the basic bot account and password.

Choosing the bot tool[]

When getting started with automation, one of the first decisions you must make is which bot tool to use. For most users, the choice is between AutoWikiBrowser (AWB) and Pywikibot (PWB). While many people use both, depending on the task, each tool has its pros and cons.

AWB[]

Pros:

  • Has a GUI instead of requiring to do everything through a command-line interface.
  • Easier setup & lower barrier to entry as a result.
  • Better at doing complex find-and-replace operations.

Cons:

  • Limited selection of generators, so editing lists of pages with complex criteria sometimes requires several steps.
  • AWB only has Windows executables and needs Wine to run on Mac and Linux.

PWB[]

Pros:

  • Can delete, move, and create pages easily instead of just editing.
  • Once you are familiar with the command line interface & available options, it's fewer clicks to accomplish some of the tasks that both tools can do.
  • Can use a wider variety of page list generators.
  • Can be run on most operating systems without requiring extra tools.

Cons:

  • More difficult to set up and more difficult to learn.
  • Harder to preview changes before making them.

Custom bot development[]

Some advanced users choose to create their own bots and scripts to interact with the wiki. Such tools can be written in many languages, often JavaScript (to run in the browser) and Python (to work with PWB, or the mwclient and mwparserfromhell libraries). See the MediaWiki.org page on API clients for more information.

Resources[]

For more information on using and making bots, see AutoWikiBrowser, Pywikibot, or Creating a bot.

Fandom Developers Wiki also offers a few scripts that allow making automated edits via your web browser, without the need to download and set up another application. Most notably:

You can look for other relevant scripts on their List of JavaScript enhancements#Page and file management.

Please visit the Community Central discussions to find other bot users for help in using bots for specific tasks.

See also[]

User blogs on bots[]

Further help and feedback[]