PyWikipediabot is a bot used for several functions in Wikipedia. Most famous is probably the bot for working on Interwiki links. See http://sourceforge.net/projects/pywikipediabot/. This is a report of changes and additions to the bot in the past week.
* imagetransfer.py is a new bot. Given a Wikipedia page, it searches through interwiki links for images, and on request of the user, uploads them to the user's home Wikipedia. It's still in development, but it seems the serious bugs have gone. It was created by Andre Engels, with help from Head, and based on an existing bot by Rob Hooft. * copy_table.py takes a table from one Wikipedia and puts it in another, translating 'on the fly'. Programmed by head. It currently can translate taxoboxes between English, French, German and Dutch, and German city data from German to English and Dutch * If the interwiki-bot is given a hint without a page title, the title of the original page is taken to be the hint. * The hints 'main' and 'more' of the interwiki-bot have been renamed to '10' and '20', and '30' has been added; each gives approximately that number of the largest languages. Also the hint cyril: (for all languages in Cyrillic writing) has been added.
Current discussion: We are looking for ways to improve the handling of problems in interwiki.py where more than one link is found to one language.
Andre Engels
On Monday 05 April 2004 10:18, Andre Engels wrote:
PyWikipediabot is a bot used for several functions in Wikipedia. Most famous is probably the bot for working on Interwiki links. See http://sourceforge.net/projects/pywikipediabot/. This is a report of changes and additions to the bot in the past week.
I would like to modify it to work with Wikitravel. The main differences are: *URLs begin http://www.wikitravel.org/<language>, not http://<language>.wikitravel.org/. *All Wikitravels are UTF-8 enabled.
There is no test Wikitravel. I asked Evan to set one up, but he hasn't answered.
phma
Tuesday, April 6, 2004, 12:53:31 AM, you wrote:
On Monday 05 April 2004 10:18, Andre Engels wrote:
PyWikipediabot is a bot used for several functions in Wikipedia. Most famous is probably the bot for working on Interwiki links. See http://sourceforge.net/projects/pywikipediabot/. This is a report of changes and additions to the bot in the past week.
I would like to modify it to work with Wikitravel. The main differences are: *URLs begin http://www.wikitravel.org/<language>, not http://<language>.wikitravel.org/. *All Wikitravels are UTF-8 enabled.
There is no test Wikitravel. I asked Evan to set one up, but he hasn't answered.
phma
Hello Pierre,
You will need to edit the array "langs" in file wikipedia.py. I think instead of:
'en':'en.wikipedia.org'
you can use: 'en':'www.wikitravel.org/en
To set them all as utf-8 empty the "latin1" and "latin1old" array as I think the bot default to utf-8 for encoding :)
We can eventually move those arrays to the default configuration script. That will allow a user to override the settings in his user configuration script.
cheers,
wikipedia-l@lists.wikimedia.org