本文介绍了验证后,Python请求获取Cookie值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Python请求中如何在身份验证后获取cookie值,服务器必须在身份验证后为您提供有效的cookie,就我而言,即使试图在.cookies或.headers中查找,我也看不到cookie
in Python Requests How to get cookies values after authentication, the server must gave you a valid cookies after the authentication, in my case I can't see the cookies, even if I tried to look in .cookies or .headers
推荐答案
r = requests.get(url)
print r.cookies
响应包含一个属性cookie
the response contains an attribute cookies
这篇关于验证后,Python请求获取Cookie值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!