smart_login icon indicating copy to clipboard operation
smart_login copied to clipboard

使用Selenium获取Cookie后,使用requests进行登录百度云时,提示csrftoken校验错误,可能是跨站点攻击,有什么好的解决办法嘛?

Open wangzhe0912 opened this issue 7 years ago • 1 comments

wangzhe0912 avatar Aug 25 '18 14:08 wangzhe0912

你手动登录百度云,然后用类似editthiscookie的插件看看cookie有哪些值,然后和你通过selenium得到的值对比一下,看看有不有缺。

也可以把你手动登录后的cookie带入requests去看看是不是还要提示csrftoken校验错误

ResolveWang avatar Aug 26 '18 01:08 ResolveWang