Help:Boty
![]() |
Uwaga: Jeżeli edytujesz tę stronę, to umieszczając na niej treści wyrażasz nieodwołalną zgodę na udostępnianie Twojego materiału na podstawie wolnej licencji CC0. Aby uzyskać więcej informacji, przeczytaj Strony Pomocy w Domenie Publicznej.
|
![]() |
Bot to program komputerowy, który automatycznie modyfikuje strony na wiki. Zazwyczaj boty są używane do powtarzalnych zadań, których właściwości i rozmiar są zbyt duże, aby zostały wykonane ręcznie przez użytkowników.
Uruchamianie bota wykracza poza rolę zwykłego użytkownika, wymaga doświadczenia w programowaniu i musi przebiegać w zgodzie z administratorami wiki.
Domyślne, edycje botów są ukryte w Special:RecentChanges.
Struktura i interfejs rozwoju bota
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 standardized 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.
pywikibot
Pywikibot 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 (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, etc. The library also comes with simple, but powerful standalone bot methods that can be readily utilized by a programmer.
Chris G's botclasses
Chris G's botclasses compose a PHP MediaWiki bot framework hosted at the toolserver.
Alternatywy w postaci rozszerzeń
- 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.
- Extension:Replace Text — jest inną opcją.