Parsing HTTP Response in Python

后端 未结 5 732
夕颜
夕颜 2020-12-13 09:08

I want to manipulate the information at THIS url. I can successfully open it and read its contents. But what I really want to do is throw out all the stuff I don\'t want,

5条回答
  •  眼角桃花
    2020-12-13 09:52

    I guess things have changed in python 3.4. This worked for me:

    print("resp:" + json.dumps(resp.json()))
    

提交回复
热议问题