[Pywikipedia-l] PLEASE READ: rewrite branch needs testing
Russell Blau
russblau at imapmail.org
Thu Feb 5 22:17:31 UTC 2009
The following bots have now been ported to the rewrite framework:
category.py
editarticle.py
replace.py
solve_disambiguation.py
touch.py
These scripts need testing! Please report any bugs on the sourceforge.net
tracker, using the "Rewrite" category. [One known issue: "category.py
move" won't work without the -inplace option.]
You can get the rewrite branch with your favorite SVN client:
svn checkout
svn+ssh://[yournamehere]@svn.wikimedia.org/svnroot/pywikipedia/branches/rewrite
You will need to make a copy of your existing user-config.py file and store
it in a new location. For Windows, this is "C:\Documents and
Settings\[yournamehere]\Application Data\pywikibot" -- for Unix-like
systems, it is "~/.pywikibot" (if you want to put it somewhere
else, you can set the environment variable PYWIKIBOT2_DIR to the name of the
directory containing your user-config.py, but I don't recommend trying to
use the same directory you keep your existing pywikipedia files in).
The bots themselves can be found in the pywikibot/scripts subdirectory under
the directory to which you checked out the framework. However, if you add
this directory to your PYTHONPATH, you should be able to run the scripts
from any directory.
For those who aren't aware, the rewrite branch is a new pywikipedia
framework that is designed to be (mostly) backwards-compatible with existing
scripts, but which uses the MediaWiki API (instead of screen-scraping) for
all access to wiki contents and metadata. The idea is to obsolete the
existing framework and replace it with this branch as soon as testing is
complete and all major bots have been ported.
Oh, and by the way, patches and other contributions besides bug reports are
also welcome!
Russ
More information about the Pywikipedia-l
mailing list