摘要: 地址和请求头参数--url和header res = requests.get(url,headers=headers) 向网站发起请求,并获取响应对象 参数 url :需要抓取的URL地址 headers : 请求头 timeout : 超时时间,超过时间会抛出异常 响应对象(res)属性 enc 阅读全文
posted @ 2019-09-02 14:50 凌逆战 阅读(16694) 评论(0) 推荐(24) 编辑