Planning the future of Botwiki! - Help us bring Botwiki up to date, contribute to our strategy discussion, add bot scripts, and contribute manuals, guides, and tutorials! Almost anything related to bots, particularly those used to edit mediawiki, is welcome.
UNABLE TO EDIT? - We've experienced attacks by spambots lately and now require you to confirm your e-mail before you can edit (go to your preferences, enter an e-mail address, and request a confirmation e-mail, then go to your e-mail and click on the confirmation link). We also require new accounts to make a few edits and wait a few minutes before before you can create a page; however, if this is a problem contact us in #botwiki and we can manually confirm your account. Sorry for the inconvenience.
Python
Python is a high-level interpreted programming language. General information on python can be found at the English Wikipedia entry for Python. There are currently two versions of Python available, 2.x and 3.x, which are not cross-compatible as the syntax is different between the two versions. Although references and symbols of snakes are ubiquitous, the name has nothing to do with snakes and everything to do with Monty Python's Flying Circus.
There are numerous python resources on the web, some of the most important are:
- The official Python.org site
- The Python wiki[1]
- The Python Wiki contains numerous guides and online reference manuals.
Contents |
Bots
Python 2.x is particularly useful for writing bot scripts for editing mediawiki wikis because it is the basis for the popular Python Wikipedia Robot Framework, commonly known as pywikipediabot.
Scripts
Bot scripts in Python are available on this site; however, as the pywikipediabot is under constant development (essentially it's in perpetual beta) and is well documented at MediaWiki.org, only occasional samples, specialized instructions, and custom/developmental scripts will be maintained here. All python scripts are in the PY: namespace and normally scripts will end with .py documentation may be found in the PY: namespace and, for more complex operations, in the Manual: namespace.
Learning Python
More information about learning python can be found at Python/Learning resources.
footnotes
- ↑ Python wiki is a MoinMoin wiki the software for which is written in python, not a MediaWiki wiki, which is written in PHP