https://bugzilla.wikimedia.org/show_bug.cgi?id=56734
Web browser: --- Bug ID: 56734 Summary: intewikis Product: Pywikibot Version: unspecified Hardware: All OS: All Status: NEW Severity: major Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: coet.cawiki@gmail.com Classification: Unclassified Mobile Platform: ---
I observed that Page(site, title).interwiki() doesn't work. I think it is because DataPage().get()['link'] returns something like {"nowiki":{"name: "Title", "badges": []}} and it was expected something like {"nowiki": "Title"}
Another bug i observed is that wikidata gives also the Commons link
I have modified the wikipedia.py line 4719
from "links[code]) for code in links]" to "links[code]['name']) for code in links if "commons" not in code]"
and it works fine but I think that the condition 'if "commons" not in code' is not *always* a good solution.