How to use interwiki.py now for wikipedia?

I use http://www.wikidata.org/wiki/User:Reza1615/BOT/new_interwiki.py

but i want to use classical interwiki.py too, because of posibilities
like -hint:20, -neverlink:foo, -ignore:en:bar etc

It should mininimally remove incorrect links from wikipedia and add
pages to wikidata

When I run
interwiki.py dinotopie -neverlink:hu

Getting 1 page from wikipedia:cs...
...
WARNING: wikipedia: [[cs:Dinotopie]] links to incorrect [[hu:Dinotópia
(film, 2002)]]
WARNING: wikipedia: [[el:Deinotopía]] links to incorrect
[[hu:Dinotópia (film, 2002)]]
WARNING: wikipedia: [[de:Dinotopia]] links to incorrect [[hu:Dinotópia
(film, 2002)]]

But no page is changed

When I run

interwiki.py dinotopie -repository
Getting 1 page from wikipedia:cs...
[[cs:Dinotopie]]: [[cs:Dinotopie]] gives new interwiki [[de:Dinotopia]]
[[cs:Dinotopie]]: [[cs:Dinotopie]] gives new interwiki [[el:Deinotopía]]
[[cs:Dinotopie]]: [[cs:Dinotopie]] gives new interwiki [[en:Dinotopia]]
[[cs:Dinotopie]]: [[cs:Dinotopie]] gives new interwiki [[es:Dinotopia]]
[[cs:Dinotopie]]: [[cs:Dinotopie]] gives new interwiki [[fr:Dinotopia]]
[[cs:Dinotopie]]: [[cs:Dinotopie]] gives new interwiki [[hu:Dinotópia
(film, 2002)]]
[[cs:Dinotopie]]: [[cs:Dinotopie]] gives new interwiki [[it:Dinotopia]]
[[cs:Dinotopie]]: [[cs:Dinotopie]] gives new interwiki [[nl:Dinotopia]]
[[cs:Dinotopie]]: [[cs:Dinotopie]] gives new interwiki [[pl:Dinotopia]]
[[cs:Dinotopie]]: [[cs:Dinotopie]] gives new interwiki [[pt:Dinotopia]]
Getting 1 page from wikidata:wikidata...
Traceback (most recent call last):
  File "D:\Py\pagegenerators.py", line 1234, in __iter__
    for loaded_page in self.preload(somePages):
  File "D:\Py\pagegenerators.py", line 1253, in preload
    pywikibot.getall(site, pagesThisSite)
  File "D:\Py\wikipedia.py", line 5464, in getall
    _GetAll(site, pages, throttle, force).run()
  File "D:\Py\wikipedia.py", line 5081, in run
    data = self.getData()
  File "D:\Py\wikipedia.py", line 5251, in getData
    pagenames = u'\r\n'.join(pagenames)
TypeError: sequence item 0: expected string or Unicode, NoneType found
sequence item 0: expected string or Unicode, NoneType found
Dump cs (wikipedia) appended.
Traceback (most recent call last):
  File "D:\Py\interwiki.py", line 2678, in <module>
    main()
  File "D:\Py\interwiki.py", line 2652, in main
    bot.run()
  File "D:\Py\interwiki.py", line 2370, in run
    self.queryStep()
  File "D:\Py\interwiki.py", line 2343, in queryStep
    self.oneQuery()
  File "D:\Py\interwiki.py", line 2339, in oneQuery
    subject.batchLoaded(self)
  File "D:\Py\interwiki.py", line 1391, in batchLoaded
    (skip, alternativePage) = self.disambigMismatch(page, counter)
  File "D:\Py\interwiki.py", line 1158, in disambigMismatch
    elif not self.originPage.isDisambig() and page.isDisambig():
  File "D:\Py\wikipedia.py", line 1570, in isDisambig
    self.templates())
  File "D:\Py\wikipedia.py", line 2830, in templates
    get_redirect=get_redirect)]))
  File "D:\Py\wikipedia.py", line 2853, in templatesWithParams
    extract_templates_and_params(thistxt, asList=True)]
  File "D:\Py\pywikibot\textlib.py", line 899, in extract_templates_and_params
    thistxt = removeDisabledParts(text)
  File "D:\Py\pywikibot\textlib.py", line 272, in removeDisabledParts
    return toRemoveR.sub('', text)
TypeError: expected string or buffer


-- 
JAnD

_______________________________________________
Pywikipedia-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Reply via email to