Jump to content

Wikipedia:Bots

Page semi-protected
From Wikipedia, the free encyclopedia
(Redirected fromWikipedia:BOT)

A man is shaking hands with a small humanoid robot
A physical robot (right)

Abot(a common nickname forsoftware robot) is an automated tool that carries out repetitive and mundane tasks to maintain the61,464,388pages of the English Wikipedia. Bots are able to make edits very rapidly, but can disrupt Wikipedia if they are incorrectly designed or operated. For these reasons, abot policyhas been developed.

There are currently 2,713bot tasks approved for useon the English Wikipedia; however, not all approved tasks involve actively carrying out edits. Bots will leave messages on user talk pages if the action that the bot has carried out is of interest to that editor. Some bots can be excluded from leaving these messages by using the{{bots}}tags. There are 213 exclusion-compliant bots, which are listed inthis category.There are297bots flagged with the "bot" flag right now (and over 400former bots). There is also a range oftoolsthat allow semi-automated editing of large numbers of articles.

History

Bots have been used in the past to create large numbers of articles that were uploaded to Wikipedia within a short timeframe. Some technical problems were experienced and this led to the formulation of a bot policy, as well as arestrictionon the automated, large-scale, creation of articles.

Bot policy

Wikipedia policy requires that bots be harmless and useful, have approval, use separate user accounts, and be operated responsibly.

Bot Approvals Group

The Bot Approvals Group (BAG) supervises and approves all bot-related activity from a technical and quality-control perspective on behalf of the English Wikipedia community. On the English Wikipedia, the right toflaga bot is limited tobureaucrats.

Running an automated bot on a separate account requires approval, which may be requested atWikipedia:Bots/Requests for approval.

How to create a bot

Some programming experience generally is needed to create a bot, and knowledge ofregular expressionsis useful for many editing tasks. However, some of the more user-friendly tools, such asAutoWikiBrowserorJavaScript Wiki Browser,can be used for some tasks.

The Chicken Scheme,Common Lisp, Haskell, Java, Microsoft.NET, Perl, PHP, Python, and Ruby programming languages all have libraries available for creating bots.Pywikibotis a commonly used Python package developed specifically for creating MediaWiki bots.

Dealing with bot issues

If you have noticed a problem with a bot, have a complaint, or have a suggestion to make, you should contact the bot operator directly via their user talk page (or via the bot account's talk page). Bot operatorsare expected to be responsiveto the community's concerns and suggestions, but pleaseassume good faithanddon't panic.Bugs and mistakes happen, andwe're all here to build an encyclopedia.

If the bot is causing a significant problem, or the bot operator has not responded and the bot is still causing issues, several mechanisms are available to prevent further disruption. Many bots provide astop buttonor means to disable the problematic task on their bot user page. This should be tried first, followed by a discussion of the issue with the bot operator. If no such mechanism is available (or if urgent action is needed), leave a message at theadministrators' noticeboardrequesting a block for a malfunctioning bot. Per the noticeboard's guideline, you are required to notify the bot operator of the discussion taking place at the noticeboard.

If you are concerned that a bot is operatingoutside the established consensusfor its task, discuss the issue with the bot operator first, or tryother forms of dispute resolution(BAG memberscan act as neutral mediators on such matters). If you are concerned that a botno longer has consensusfor its task, you mayformally appeal or ask for re-examinationof a bot's approval.

How to hide a specific bot from your watchlist

While it is easy tohide all bots from your watchlist,there is no way of hiding specific bots through user preferences or default watchlist settings. However, it is possible with auser scriptby following these steps.

Main steps

  1. Go to yourSpecial:MyPage/common.jspage (or yourSpecial:MyPage/skin.js), and add the following line (diff):
    importScript('User:UncleDouggie/smart_watchlist.js');// Backlink: [[User:UncleDouggie/smart_watchlist]]
  2. Go toSpecial:Preferences#mw-prefsection-rc,check both the 'Group changes by page in recent changes and watchlist' and 'Use non-JavaScript interface' boxes, and click 'Save'.
  3. Remember tobypass your browser's cache.
  4. Go to your watchlist. There should be a box with several options. Tick the 'Enable hide user buttons' box. This will let you hide specific bots (and users) from your watchlist.
    Note:You might want to untick the 'Enable hide user buttons' box after you ignore a bot to ensure that you don't accidentally click 'hide user' when browsing your watchlist.

Optional steps

  1. If you find the 'Enable hide user buttons' box annoying, go to yourSpecial:MyPage/common.csspage (orSpecial:MyPage/skin.css) and add the following line (diff):
    #SmartWatchlistOptions{display:none!important;}
  2. Remember tobypass your browser's cache.
  3. If you want to show the box again, for example to reset your ignore list, go to yourSpecial:MyPage/common.csspage and remove the line you added in optional step #1 (remembering to againbypass your browser's cache). Redoing optional steps #1 and #2 will hide the box again.

While you are completely free to ignore any bots (or users) you want, it is a good idea to only ignore bots with well-defined tasks, which you trust to not make any mistakes.

How to hide AWB edits from your watchlist

There is no way of hidingAutoWikiBrowser(AWB) edits through user preferences or default watchlist settings. However, it is possible with auser scriptby following these steps:

Steps

  1. Go to yourSpecial:MyPage/common.jspage (or yourSpecial:MyPage/skin.js), and add the following two lines (diff):
    importScript('User:Evad37/Watchlist-hideAWB.js');// Backlink: [[User:Evad37/Watchlist-hideAWB]]
    varawbHiddenByDefault=true;
    
  2. Bypass your browser's cache.

Any edit with "AWB" in its edit summary will now default to hidden for you. You may reveal them by clicking on the "show AWB" tab at the top of your watchlist (next to "Special page" for Monobook skin, or in the "More" dropdown for Vector skin).

Notes:

  • If you leave outvarawbHiddenByDefault=true;,AWB edits will be shown by default, but you will have the option of hiding AWB edits by clicking on the "hide AWB" tab at the top of your watchlist.
  • While you are completely free to ignore AWB edits, remember that many of them will contain substantial changes from human editors, not justminor editsfrom bots ormeatbots.
  • When hiding edits with a script, earlier edits can be forced to appear. Using theExpand watchlist to show all changes, not just the most recentpreferenceoption is necessary to see other non-hidden watchlist hits for a page.

How to stop specific bots from editing the article

It's rare that a mainspace article needs to not be edited by a specific bot. No article needs to stop all bots from editing, since antivandal bots such asClueBot NGneed to be able to edit all mainspace articles. The template{{bots}}can stop a bot from editing an article under the rare circumstance it's needed.

Examples

Some examples of bots are:

See also

Articles

Categories

Meta

Barnstar

Userbox and top icon