[Pywikipedia-bugs] [Maniphest] [Updated] T200357: UnicodeDecodeError (py2) or RuntimeError (py3) on .getRedirectTarget() with page « Ꜫ »

2023-08-20 Thread Maintenance_bot
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

[Pywikipedia-bugs] [Maniphest] [Commented On] T200357: UnicodeDecodeError (py2) or RuntimeError (py3) on .getRedirectTarget() with page « Ꜫ »

2023-08-20 Thread gerritbot
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

[Pywikipedia-bugs] [Maniphest] [Commented On] T200357: UnicodeDecodeError (py2) or RuntimeError (py3) on .getRedirectTarget() with page « Ꜫ »

2023-08-20 Thread gerritbot
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

[Pywikipedia-bugs] [Maniphest] [Commented On] T326762: Support Wikimedia Commons Query Service

2023-08-20 Thread Zache
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

[Pywikipedia-bugs] [Maniphest] [Commented On] T326762: Support Wikimedia Commons Query Service

2023-08-20 Thread matej_suchanek
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