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,