1
xchange 2016 年 4 月 27 日 |
2
caspartse 2016 年 4 月 27 日 r.history
|
3
lxy 2016 年 4 月 27 日 requests 默认自动处理跳转,不想这样的话就设置 allow_redirects = False 。
>>> res = requests.get('http://bing.com', allow_redirects=False) >>> res.headers['location'] 'http://cn.bing.com/' |
4
qooweds OP 感谢两位!
|