LiuXingMing / SinaSpider

新浪微博爬虫(Scrapy、Redis)
3.26k stars 1.52k forks source link

自动登录问题 #47

Open whm2300 opened 7 years ago

whm2300 commented 7 years ago

使用https://login.sina.com.cn/sso/login.php?client=ssologin.js(v1.4.15)登录时,每次都提示获取cookie成功,但每次以这个cookie请求微博数据的时候却又重定向到登录页?,有人遇到过么?

workthy commented 7 years ago

我现在也遇到这个问题,每次都重定向到http://weibo.cn/login/?ns=1&revalid=2&backURL=http%3A%2F%2Fweibo.cn%2F1577826897%2Ffans&backTitle=%CE%A2%B2%A9&vt=,数据抓不下来

KomeijiSatori commented 7 years ago

感觉可能是新浪加大反趴力度了,账号现在都被封了.GG

LiuXingMing commented 7 years ago

针对Cookie这块,代码已经更新

Christophy commented 7 years ago

十分感谢

shizi626 commented 7 years ago

开始出现中文验证码了,可能你的API要进行修改了

LiuXingMing commented 7 years ago

中文也是可以处理的

KomeijiSatori commented 7 years ago

It worked, thanks!!

KKnight99 commented 7 years ago

中文验证码好像还不支持,一直提示输入验证码

KomeijiSatori commented 7 years ago

你可能是用的python2.7 ,在源代码那里raw_input那里加一行.decode("utf8")就行了,试试

2017-04-05 16:41 GMT+08:00 yelongbao notifications@github.com:

中文验证码好像还不支持,一直提示输入验证码

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/LiuXingMing/SinaSpider/issues/47#issuecomment-291793907, or mute the thread https://github.com/notifications/unsubscribe-auth/AOjTNlwOQOckURQUO1kTu2HOjXGjIks9ks5rs1OdgaJpZM4MXxpF .