There have been large changes in the Python Wikipediabot Framework
recently. Below I will sum up the most important changes, but before
doing so, I want to warn you that the user-config.py has to be changed
before using a recent (less than about one week old) version of the
bot. It has been changed to enable the editing of multiple languages
with the interwiki bot.
Removed has to be the line:
username = 'MyBot'
And it is to be replaced with lines:
usernames['family']['xx'] = 'MyBot'
for each project and language where your bot has a login. 'family'
will be 'wikipedia' for most of you; the others will probably know
what it should be in their case.
A recent snapshot can be found at
http://sourceforge.net/projects/pywikipediabot/.
The most important changes of approximately the last month:
== General ==
* The option '-help' has been added to many bots, giving their
documentation. This includes a hint of what they do and a list of
their options.
* The bot checks watchlists, so that if something is on the watchlist,
it will not be automatically removed upon editing. They are still
checked only once a month, however.
* If the bot is not logged in, it tries to log in before saving a page.
== Configuration (config.py) ==
* 'username' changed to 'usernames' (see above)
* new configuration parameter ring_bell: Can be set to False to let
the bots not give any audible signs (bell)
* new configuration parameter userinterface: default value 'terminal',
the alternative 'tkinter' (more GUI-like interface) is not ready yet.
== category.py ==
* Better exception handling for category.py all
== imagetransfer.py ==
* Can now be used to directly upload to commons
* Can now be used to upload to another wiki rather than commons
== interwiki.py ==
* Will edit all languages the bot is logged in at, not just the one
you are working in
* Will notice links between disambiguation pages and
non-disambiguation pages, and prompt the user upon meeting them
(unless autonomous)
* New option -select always lets the user say yes/no to each specific page found
* Handles the scanwiki/interwiki from nn:wikipedia correctly now
* Option -vertfile produces a list of interwiki links
== login.py ==
* New option '-all' to login on all wikis from the user-config.py (but
checks first)
== makecat.py ==
* If the page is already in a (direct) parent category of the category
being added, the parent is removed (there is however currently a bug
in finding parent categories, will be corrected)
== replace.py ==
* Does now accept the -start option
== touch.py ==
* Replaces the old bot touchall.py. Apart from the old functionality
to 'touch' all pages in a wiki (starting at a given page, this bot can
also be used on all pages in a category, all pages linked from a wiki
page, all pages linking to a given page, a list in a textfile or on a
single page.
== weblinkchecker.py ==
* Various bugfixes and minor improvements
== Localization ==
* Languages ff:,fur:,bm: added, sh: re-added
* Names for namespaces added
== Private bots ==
People who have their own bots may notice various changes that might
make them unable to use them in combination with new releases. The
latest important change is that Page.linkname() has been renamed to
Page.title() (for those who are used to yet older versions: The Page
class is a renaming of the PageLink class).