Commons talk:SPARQL query service

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

How to authenticate to Wikimedia Commons Query Service using OAuth in Python?[edit]

This page says it's possible to authenticate against the query service using OAuth, but has anyone managed to do so programmatically from Python? If anyone has any working code, in any language, I would appreciate whatever you can share. I've asked the full question including my not-working Python code on StackOverflow: https://stackoverflow.com/questions/65303450/how-to-authenticate-to-wikimedia-commons-query-service-using-oauth-in-python --FrankieRayRobertson (talk) 13:38, 21 December 2020 (UTC)[reply]

@Multichill: do you have example code for this / are you using WCQS with python? --Zache (talk) 06:55, 4 January 2021 (UTC)[reply]
@Zache: no, would have to look into this. Should be part of Pywikibot if someone figures it out. Did you already file a task in phabricator to add support for https://wcqs-beta.wmflabs.org/ ? Multichill (talk) 18:31, 13 February 2021 (UTC)[reply]

HTTP 500, server down?[edit]

For me https://wcqs-beta.wmflabs.org/ throws a 500 Internal Server Error:

Problem accessing /oauth/check_login. Reason:
Request failed.

Is this known? Any information when the query service might be back? Thanks in advance for any information or linking to relevant other places! --Marsupium (talk) 00:30, 28 December 2021 (UTC)[reply]

@Marsupium: issue was reported in T297454--Shisma (talk) 11:48, 31 December 2021 (UTC)[reply]
Thanks for the link! --Marsupium (talk) 12:19, 31 December 2021 (UTC)[reply]