2019年10月16日

requests第三方库使用 抓取

摘要: import requests r=requests.get('http://httpbin.org/get') r.text#内容 r.json()#直接变成json格式 r.status_code#200 r.reason#ok r=requests.post('http://httpbin.org/post',{'a':'1'});print(r.json())#post参数传递 r=req 阅读全文

posted @ 2019-10-16 14:08 土豆爸 阅读(192) 评论(0) 推荐(0) 编辑

导航