matej_suchanek added a comment.
Works for me, provided the bot account has authenticated to the endpoint (in
the browser).
I tried using `WikidataSPARQLPageGenerator`, but it doesn't work.
>>> import pywikibot
>>> site = pywikibot.Site('commons')
>>> repo = site.data_repository()
>>> repo
DataSite("wikidata", "wikidata")
The query gets redirected to Wikidata.
TASK DETAIL
https://phabricator.wikimedia.org/T326762
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: matej_suchanek
Cc: Zache, Aklapper, matej_suchanek, pywikibot-bugs-list, PotsdamLamb,
Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi,
Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx,
Xqt, jayvdb, Ricordisamoa, Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]