pywikibot 2.0rc4
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 https://gerrit.wikimedia.org/r/pywikibot/core.git cd core git submodule update --init python pwb.py script_name
Our installation guide has more details for advanced usage.
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') page.save('Replacing "foo" with "bar"') # Saves the page
Required external programms
It may require the following programs to function properly:
- 7za: To extract 7z files
File | Type | Py Version | Uploaded on | Size | |
---|---|---|---|---|---|
pywikibot-2.0rc4.tar.gz (md5) | Source | 2015-12-15 | 888KB | ||
- Downloads (All Versions):
- 0 downloads in the last day
- 0 downloads in the last week
- 323 downloads in the last month
- Author: The Pywikibot team
- Home Page: https://www.mediawiki.org/wiki/Pywikibot
- License: MIT License
- Categories
- Package Index Owner: xzise, John.Mark.Vandenberg, xqt, valhallasw
- DOAP record: pywikibot-2.0rc4.xml