[Pywikipedia-l] [Pywikipedia-svn] SVN: [8504] trunk/pywikipedia
Merlijn van Deen
valhallasw at arctus.nl
Wed Sep 8 22:04:20 UTC 2010
On 8 September 2010 20:22, Bináris <wikiposta at gmail.com> wrote:
> With this, will that work for all wikis? In huwiki
>
>> + '<li><a href=".+?" class="new" title="(?P<title>.+?)
>> \(page does not exist\)">.+?</a> .+?\)</li>')
>>
>>
>
Good question. Yes, it will: pywikipediabot asks for the english translation
of the wiki:
def wantedcategories_address(self, code, limit=500):
return "%s?title=%s:wantedcategories&limit=%d&useskin=monobook*
&uselang=en*" % (self.path(code), self.special_namespace_url(code), limit)
The uselang=en trick is a good one to remember - for instance if you want to
find the edit button on a wiki in a language you don't understand. You can
add it to any url:
http://fi.wikipedia.org/wiki/Wikipedia:Etusivu?uselang=en
or
http://fi.wikipedia.org/w/index.php?title=Wikipedia:Etusivu&action=history&uselang=en
Best regards,
Merlijn van Deen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wikimedia.org/pipermail/pywikipedia-l/attachments/20100909/81433a90/attachment.htm
More information about the Pywikipedia-l
mailing list