skip to navigation
skip to content

pywikibot 2.0rc5

Python MediaWiki Bot Framework

The Pywikibot framework is a Python library that interfaces with the MediaWiki API version 1.14 or higher.

Also included are various general function scripts that can be adapted for different tasks.

Quick start

git clone
cd core
git submodule update --init
python script_name

Our installation guide has more details for advanced usage.


If you wish to write your own script it’s very easy to get started:

import pywikibot
site = pywikibot.Site('en', 'wikipedia')  # The site we want to run our bot on
page = pywikibot.Page(site, 'Wikipedia:Sandbox')
page.text = page.text.replace('foo', 'bar')'Replacing "foo" with "bar"')  # Saves the page

Required external programms

It may require the following programs to function properly:

  • 7za: To extract 7z files


Our code is maintained on Wikimedia’s Gerrit installation, learn how to get started.

File Type Py Version Uploaded on Size
pywikibot-2.0rc5-py2-none-any.whl (md5, pgp) Python Wheel 2.7 2016-08-17 437KB
pywikibot-2.0rc5-py3-none-any.whl (md5, pgp) Python Wheel 3.5 2016-08-17 437KB
pywikibot-2.0rc5.tar.gz (md5, pgp) Source 2016-08-17 387KB