Requests库:python实现的简单易用的http库

1、get请求: get(url, params, headers)

2、json 解析

3、content 获取二进制内容

4、headers 添加

5、post请求:post(url,data,headers)

6、files 文件上传

7、cookie 获取

8、session 会话维持--模拟登录

9、proxies 代理设置

10、timeout 超时设置

11、exception 异常处理

猜你喜欢

转载自www.cnblogs.com/wangshx6/p/9903910.html