Manual:Pywikibot
Pywikibot is a Python library and collection of scripts that automate work on MediaWiki sites. Originally designed for Wikipedia, it is now used throughout the Wikimedia Foundation's projects and on many other wikis.
Running a bot

- What is Pywikibot?
- Learn how to install and configure Pywikibot
- Discover existing scripts for Pywikibot
Writing a bot
- Learn how to write a basic script
- Discover the documentation at doc.wikimedia.org
- Learn how to interact with Wikidata
Developing Pywikibot

- Learn how to contribute to Pywikibot
- Discover the source code on Gerrit (GitHub mirror, Diffusion mirror, Codesearch tool)
- List bugs for Pywikibot
- Learn how to translate Pywikibot
Get help
- Use the #pywikibot IRC channel connect for quick questions
- Sign up to the main mailing list for asking complex questions or sharing information
- Get more help on other support channels
- Python 2 to Python 3 migration support
- Pywikibot compat to core migration support
See also
- Pywikibot compatibility with Python and MediaWiki
- Help:Creating a bot
- mwparserfromhell (wikicode parser written in Python)
- Other Python bots
News
A new stable release 7.2.1 has been deployed. This release only contains a backported bugfix for movepages.py script. It is marked with stabletag.
A new stable release 7.2 has been deployed.
A new stable release 7.1.1 has been deployed. This release only contains a backported bugfix for replace.py script.
A new stable release 7.1 has been deployed.
Python 3.10.4 and 3.9.12 final releases are available.
Python 3.10.3, 3.9.11 and 3.7.13 final releases are available.
Pywikibot 7 has been deployed.
Note: With Pywikibot 7 most deprecations will be dropped. Pywikibot does not support Python 3.5.0 - 3.5.2 any longer (T286867)

