1
xchange 2016-04-27 11:33:12 +08:00 1
|
2
caspartse 2016-04-27 11:34:49 +08:00 1
r.history
|
3
lxy 2016-04-27 11:39:38 +08:00 2
requests 默认自动处理跳转,不想这样的话就设置 allow_redirects = False 。
>>> res = requests.get('http://bing.com', allow_redirects=False) >>> res.headers['location'] 'http://cn.bing.com/' |
4
qooweds OP 感谢两位!
|