[issue43775] JSON Parsing Alarm: Requests + Json = JSONDecodeError

2021-04-09 Thread Maria Kazakova
Maria Kazakova added the comment: Thank you so much for the answers!! The problem was indeed with the data source, they have fixed it. Sorry for bothering you! Wish you all the best!!! -- nosy: -paul.moore, steve.dower, tim.golden, zach.ware resolution: -> fixed stage: -> resolved

[issue43775] JSON Parsing Alarm: Requests + Json = JSONDecodeError

2021-04-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Two days ago everything worked completely fine, > and now this disaster happens. It's unlikely that Python itself changed over those two days. It's more likely that the data source has changed. Try this in your notebook: import requests r = re

[issue43775] JSON Parsing Alarm: Requests + Json = JSONDecodeError

2021-04-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: JSON is not HTML. If response.text contains HTML, it is expected that json.loads() cannot parse it. -- nosy: +serhiy.storchaka ___ Python tracker

[issue43775] JSON Parsing Alarm: Requests + Json = JSONDecodeError

2021-04-08 Thread Maria Kazakova
New submission from Maria Kazakova : I tried to use the usual code: response = requests.get (url) response.json () OR json.loads (response.text) BUT it returns JSONDecodeError Expecting value: line 1 column 1 (char 0) — no matter, which website I am trying to parse, with headers or without them.