Manual talk:Pywikibot/interwiki.py

Is autonomous_problems.dat intended to be usable as an argument for the -file: option? My version of the bot (04-22-2005 CVS) seems not to like it. It'd be of great help if it could be used; I wrote a simple script to perform the task, but at the cost of losing quite a lot of stored information. Taragui 14:52, 6 May 2005 (UTC)

probably bug
I run this bot within th (Thai) and en (English) Wikipedia(s). In English Wikipedia, instead of editing articles as my bot username, my IP-Address is shown in edit history (similar to un-login user). In Thai Wikipedia it worked well to me.

crashing bug
Python 2.5, Windows XP MCE, all SPs, just updated, get this error:

NOTE: Of Vengeance and Violence does not exist Getting 60 pages from wikipedia:sv... Sleeping for 5.7 seconds, 10 Dec 2006 15:59:47 (UTC) Dump en (wikipedia) saved Traceback (most recent call last): File "C:\pyWikipedia\pywikipedia\interwiki.py", line 1552, in    bot.run File "C:\pyWikipedia\pywikipedia\interwiki.py", line 1264, in run self.queryStep File "C:\pyWikipedia\pywikipedia\interwiki.py", line 1238, in queryStep self.oneQuery File "C:\pyWikipedia\pywikipedia\interwiki.py", line 1234, in oneQuery subj.workDone(self) File "C:\pyWikipedia\pywikipedia\interwiki.py", line 513, in workDone if self.hasnondisambig(pl.site): File "C:\pyWikipedia\pywikipedia\interwiki.py", line 363, in hasnondisambig if not pl.isDisambig: File "C:\pyWikipedia\pywikipedia\wikipedia.py", line 699, in isDisambig for tn in self.templates: File "C:\pyWikipedia\pywikipedia\wikipedia.py", line 1219, in templates thistxt = self.get File "C:\pyWikipedia\pywikipedia\wikipedia.py", line 487, in get raise self._getexception wikipedia.NoPage

If I start from the same place right before a crash, it dies again. Could it be failing to get sv.wikipedia? ST47 (en:User:ST47) 16:03, 10 December 2006 (UTC)

Incorrect (?) inclusion of subheadings
I had a short exchange to a Interwiki.py bot operator. Wikipedia bot user account w:User:SieBot undid some changes I made to the Albert article:. The Mandarin update is fine, but the German and Swedish changes are incorrect. I don't think the subheadings are appropriate for those linked articles -- the articles are each about the name; using the subheadings would be appropriate only if the English article were simply a list of the people with the name, I think. -- JHunterJ 20:27, 7 April 2007 (UTC)

Working with the logfile
Could someone explain how to use this code for other languages than English: "python interwiki.py -warnfile:english_treelang.log"? and notably, for example, how to use a file as "warning-wikipedia-kw"? Thank you very much!Benoni 10:20, 1 June 2007 (UTC)
 * Well, the answer seems to be to use the command: "python warnfile.py -lang:xx"Benoni 11:17, 1 June 2007 (UTC)

Blocking unwanted links
We need a per-page way for local editors to specify that a given interwiki link on a given page is unwanted, and a default configuration of the bots that will understand and honor such a request. The bots should never be allowed to make edits against local consensus of human editors. So we need a way for human editors to tell the bot what not to do.

The case I have in mind is Ingria, which is visited almost daily by a dozen different interwiki bot accounts and gets a link added to the highly controversial ru-sib wiki, which always get reverted. There is a local consensus among the editors of the article that this link is not wanted. I'm not going to delve into the policies and politics of why one should or shouldn't link to ru-sib, or whether or not it is okay for editors of one language wiki to boycott another. The point is simply that it shouldn't be up to the bot to decide.

In this particular case the issue could be solved by having all bot operators set their bots to "-neverlink ru-sib", but we can't really expect all bot owners to know about this case in advance. Also, there might be cases where the rejection is not of a whole language but specific to individual pages. So, we really need something on the page to stop the bot, and we need the bot to understand that in its default configuration.

As this constant revert war against a dozen different bots is getting disruptive, I very strongly urge developers to come up with a technical solution. Otherwise, I might take the step of blocking every interwiki bot on enwiki that runs without "-neverlink ru-sib". Fut.Perf. ☼ 09:25, 19 June 2007 (UTC)