ration

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2016年10月25日

摘要: 2.设置超时时间 如果代理需要账户和密码,则需这样: proxies = { "http": "http://user:pass@10.10.1.10:3128/", } 还可以显式地设置文件名: >>> url = 'http://httpbin.org/post' >>> files = {'f 阅读全文
posted @ 2016-10-25 11:19 ration 阅读(245) 评论(0) 推荐(0)

摘要: 基本Get请求: 带参数Get请求: POST请求模拟登陆及一些返回对象的方法: 使用Session()对象的写法(Prepared Requests): 另一种写法 : SessionApi 其他的一些请求方式 遇到的问题: 在cmd下执行,遇到个小错误: 分析:1、Unicode是编码还是解码 阅读全文
posted @ 2016-10-25 10:03 ration 阅读(428) 评论(0) 推荐(0)