Maintenance_bot removed a project: Patch-For-Review.
TASK DETAIL
https://phabricator.wikimedia.org/T200357
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Dalba, Maintenance_bot
Cc: gerritbot, Dalba, Xqt, Aklapper, pywikibot-bugs-list, Framawiki,
Pot
gerritbot added a comment.
Change 950801 **merged** by jenkins-bot:
[pywikibot/core@master] [IMPR] Add unidata.py script to mainenance scripts
https://gerrit.wikimedia.org/r/950801
TASK DETAIL
https://phabricator.wikimedia.org/T200357
EMAIL PREFERENCES
https://phabricator.wikime
gerritbot added a comment.
Change 950801 had a related patch set uploaded (by Xqt; author: Xqt):
[pywikibot/core@master] [IMPR] Add unidata.py script to mainenance scripts
https://gerrit.wikimedia.org/r/950801
TASK DETAIL
https://phabricator.wikimedia.org/T200357
EMAIL PREFERENCES
Zache added a comment.
There is bug/missing code in WikidataSPARQLPageGenerator. It works if the
entity_url and endpoint is defined in parameters
import pywikibot
import pywikibot.pagegenerators as pg
query = f"""
SELECT ?item ?value WHERE {{
?it
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_reposi