xchaoinfo / fuck-login

模拟登录一些知名的网站,为了方便爬取需要登录的网站
5.86k stars 2.02k forks source link

模拟登录ZhiHu,但是返回的是登录页面 #47

Open xgxofdream opened 7 years ago

xgxofdream commented 7 years ago

谢谢你提供这么详尽完备的代码。但是我碰到了如题的问题,请问是啥原因?谢谢!

以下是Console的记录:

请输入你的用户名

liujie.dhu@gmail.com 请输入你的密码


邮箱登录

200 <!DOCTYPE html>

知乎 - 与世界分享你的知识、经验和见解

知乎

与世界分享你的知识、经验和见解

herewithyou commented 7 years ago

我貌似也是这个问题啊

herewithyou commented 7 years ago

楼主解决了吗?

xgxofdream commented 7 years ago

github上更新代码了,应该是没有问题了。 我运行新的code,返回:

200 {"r":0, "msg": "\u767b\u5f55\u6210\u529f" }


刘杰 (Jie LIU) Clinical Division School of Chinese Medicine Hong Kong Baptist Universtiy Tel:+852-34112065

On Thu, Dec 8, 2016 at 9:53 PM, herewithyou notifications@github.com wrote:

楼主解决了吗?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/xchaoinfo/fuck-login/issues/47#issuecomment-265744660, or mute the thread https://github.com/notifications/unsubscribe-auth/AI90fKyjMgib1exGQXnVq29QtrCG-Horks5rGAv2gaJpZM4KyPrT .

drogbababa commented 7 years ago

LZ,下面这这句话最后的“cookies”是不是应该是本地的一个文件名?自己把cookie的内容保存在里面? session.cookies = cookielib.LWPCookieJar(filename='cookies')