1
      response_post =unirest.get("http://timesofindia.indiatimes.com/feeds/newsdefaultfeeds.cms?feedtype=sjson",headers={
"X-Mashape-Key": "key",
"Accept": "application/json"},)

如何将 response_post 解析为 json 结果?

4

1 回答 1

0

您是否尝试将 .body 添加到请求的末尾?

文档看起来很清楚 - http://unirest.io/python.html

response_post =unirest.get("http://timesofindia.indiatimes.com/feeds/newsdefaultfeeds.cms?feedtype=sjson",headers={
    "X-Mashape-Key": "key",
    "Accept": "application/json"},).body
于 2016-04-04T13:55:49.687 回答