Difference between revisions of "Help:Bots"

From AerialWiki
Jump to navigation Jump to search
m (Protected "Help:Bots" (‎[edit=sysop] (indefinite) ‎[move=sysop] (indefinite)))
 
(3 intermediate revisions by the same user not shown)
Line 8: Line 8:
  
 
== Framework and interface for bot development ==
 
== Framework and interface for bot development ==
Bots do not access the wiki through the normal graphical user interface. MediaWiki has an API (Application Programming Interface) available for this purpose. An API is a protocol for standardised communication between two computer programs. Check [http://www.mediawiki.org/wiki/API:Client_code API:Client code] for more information.
+
Bots do not access the wiki through the normal graphical user interface. MediaWiki has an API (Application Programming Interface) available for this purpose. An API is a protocol for standardised communication between two computer programs. Check [[mediawikiwiki:API:Client_code|API:Client code]] for more information.
  
 
To access a wiki through the API a bot must have a user account, which has been granted 'bot' [[Help:Assigning permissions|permissions]].
 
To access a wiki through the API a bot must have a user account, which has been granted 'bot' [[Help:Assigning permissions|permissions]].
  
 
=== pywikipediabot ===
 
=== pywikipediabot ===
[http://www.mediawiki.org/wiki/Manual:Pywikipediabot Manual:pywikipediabot] provides a framework for the development of bots, which are commonly used to perform maintenance tasks such as adding a footer to some categorized pages ([http://www.mediawiki.org/wiki/Pywikipediabot/add_text.py add_text.py]), adding some [[Help:Links|wikilinks]] ([http://www.mediawiki.org/wiki/Manual:Pywikipediabot/replace.py replace.py]), moving old contents of [[Help:Talk pages|talk pages]] to [[Help:Subpages|subpages]] ([http://www.mediawiki.org/wiki/Manual:Pywikipediabot/archivebot.py archivebot.py]), editing [[Help:Categories|categories]] ([http://www.mediawiki.org/wiki/Manual:Pywikipediabot/category.py category.py]), or managing [[Help:Templates|templates]] ([http://www.mediawiki.org/wiki/Manual:Pywikipediabot/template.py template.py]).
+
[mediawikiwiki:Manual:Pywikipediabot|Manual:pywikipediabot]] provides a framework for the development of bots, which are commonly used to perform maintenance tasks such as adding a footer to some categorized pages ([mediawikiwiki:Pywikipediabot/add_text.py|add_text.py]), adding some [[Help:Links|wikilinks]] ([[mediawikiwiki:Manual:Pywikipediabot/replace.py|replace.py]]), moving old contents of [[Help:Talk pages|talk pages]] to [[Help:Subpages|subpages]] ([[mediawikiwiki:Manual:Pywikipediabot/archivebot.py|archivebot.py]]), editing [[Help:Categories|categories]] ([[mediawikiwiki:Manual:Pywikipediabot/category.py|category.py]]), or managing [[Help:Templates|templates]] ([[mediawikiwiki:Manual:Pywikipediabot/template.py|template.py]]).
  
 
=== wiki-java ===
 
=== wiki-java ===
Line 21: Line 21:
 
* [[:mw:Extension:MassEditRegex|Extension:MassEditRegex]] provides an alternative way to perform mass edits using regular expressions, through a special page in the wiki. Only admins can normally use this extension.
 
* [[:mw:Extension:MassEditRegex|Extension:MassEditRegex]] provides an alternative way to perform mass edits using regular expressions, through a special page in the wiki. Only admins can normally use this extension.
  
* [http://www.mediawiki.org/wiki/Extension:ReplaceText Extension:ReplaceText] is another option.
+
* [[mediawikiwiki:Extension:ReplaceText|Extension:ReplaceText]] is another option.
  
 
== See also ==
 
== See also ==
* [http://meta.wikimedia.org/wiki/Bot meta:Bot]
+
* [[metawikipedia:Bot|meta:Bot]]
  
 
{{Languages}}
 
{{Languages}}
  
 
[[Category:Help|{{PAGENAME}}]]
 
[[Category:Help|{{PAGENAME}}]]

Latest revision as of 20:16, 4 September 2012

PD Important note: When you edit this page, you agree to release your contribution into the public domain. If you don't want this or can't do this because of license restrictions, please don't edit. This page is one of the Public Domain Help Pages, which can be freely copied into fresh wiki installations and/or distributed with MediaWiki software; see Help:Contents for an overview of all pages. PD


A bot is a computer program that automatically retrieves or updates wiki pages when it is executed. In general, bots are used for repetitive maintenance tasks, whose volume and characteristics are too large to be performed manually by users.

Developing and executing bots is normally outside the role of normal users, requires programming experience and must be done in coordination with the wiki's admins.

By default, bot edits are hidden in Special:Recent changes.

Framework and interface for bot development

Bots do not access the wiki through the normal graphical user interface. MediaWiki has an API (Application Programming Interface) available for this purpose. An API is a protocol for standardised communication between two computer programs. Check API:Client code for more information.

To access a wiki through the API a bot must have a user account, which has been granted 'bot' permissions.

pywikipediabot

[mediawikiwiki:Manual:Pywikipediabot|Manual:pywikipediabot]] provides a framework for the development of bots, which are commonly used to perform maintenance tasks such as adding a footer to some categorized pages ([mediawikiwiki:Pywikipediabot/add_text.py|add_text.py]), adding some wikilinks (replace.py), moving old contents of talk pages to subpages (archivebot.py), editing categories (category.py), or managing templates (template.py).

wiki-java

wiki-java is a lightweight Java framework for bot/application development and can be used to perform various tasks, such as uploading files, adding text to articles, parsing templates, basic I/O, ect. The library also comes with simple, but powerful standalone bot methods that can be readily utilized by a programmer.

Extension alternatives

  • Extension:MassEditRegex provides an alternative way to perform mass edits using regular expressions, through a special page in the wiki. Only admins can normally use this extension.

See also

Language: English