python_scripts icon indicating copy to clipboard operation
python_scripts copied to clipboard

新浪微博API返回的不是JSON

Open hepingtao opened this issue 7 years ago • 0 comments

运行 heart.pyresponse.json()[0] 报错:

raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

新浪微博API返回的是html,并不是json格式,因此报错

hepingtao avatar Mar 09 '17 06:03 hepingtao