Any update on this? I am still seeing the same error, or is that a bug from
my side?
*Here is the code:*
import requests
query = "
https://en.wikipedia.org/w/api.php?action=query&format=json&list=pr…
"
response = requests.get(url).json()
*Here is the error message:*
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/Users/bowen/Library/Python/3.4/lib/python/site-packages/requests/models.py",
line 894, in json
return complexjson.loads(self.text, **kwargs)
File
"/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/json/__init__.py",
line 318, in loads
return _default_decoder.decode(s)
File
"/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/json/decoder.py",
line 343, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File
"/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/json/decoder.py",
line 361, in raw_decode
raise ValueError(errmsg("Expecting value", s, err.value)) from None
ValueError: Expecting value: line 1 column 1 (char 0)
Thank you!
On Tue, Feb 6, 2018 at 3:56 PM, Bowen Yu <bowen-yu(a)umn.edu> wrote:
Got it. Thank you for clarification. Hope it will work
again this Thursday
at deployment!
On Tue, Feb 6, 2018 at 3:44 PM, Bartosz Dziewoński <matma.rex(a)gmail.com>
wrote:
This appears to be a bug. I filed
<https://phabricator.wikimedia
.org/T186648>.
The API should still be available, it is listed here:
https://en.wikipedia.org/w/api.php?action=help&recursivesubm
odules=1#query+projectpages
You won't find it on API:Lists because it's provided by an extension: <
https://www.mediawiki.org/wiki/Extension:PageAssessments>gt;.
--
Bartosz Dziewoński
_______________________________________________
Mediawiki-api mailing list
Mediawiki-api(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api