Re: [pywikibot] getInterwiki

2019-07-22 Thread info
One posioility is to extract interwiki links from a Page.text by using 
textlib.getLanguageLinks(); interwikidata.py uses that method. The other way is 
using Page.langlinks(), Page.iterlanglinks() or Site.pagelanglinks() which uses 
the API and they should still work.

Best
xqt

> masti mailto:mast...@gmail.com > hat am 22. Juli 2019 um 
> 10:55 geschrieben:
> 
> 
> It used to be a getInterwiki method before Wikidata era.
> What is the easiest way to get them instead of parsing sitelinks list of
> WD object?
> 
> masti
> 
> ___
> pywikibot mailing list
> pywikibot@lists.wikimedia.org mailto:pywikibot@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/pywikibot
> 
___
pywikibot mailing list
pywikibot@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot


[pywikibot] getInterwiki

2019-07-22 Thread masti

It used to be a getInterwiki method before Wikidata era.
What is the easiest way to get them instead of parsing sitelinks list of 
WD object?


masti

___
pywikibot mailing list
pywikibot@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot