Skip to content
This repository has been archived by the owner on Jul 13, 2019. It is now read-only.

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

Open
xgxofdream opened this issue Nov 15, 2016 · 4 comments
Open

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

xgxofdream opened this issue Nov 15, 2016 · 4 comments

Comments

@xgxofdream
Copy link

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

以下是Console的记录:

请输入你的用户名

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


邮箱登录

200

<title>知乎 - 与世界分享你的知识、经验和见解</title> <script src="https://static.zhihu.com/static/revved/-/js/instant.14757a4a.js"></script>

知乎

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

请点击图中倒立的文字
验证码
登录
记住我 无法登录?
社交帐号登录
下载知乎 App
验证码
注册知乎

点击「注册」按钮,即代表你同意《知乎协议》

下载知乎 App

© 2016 知乎
·
知乎圆桌
·
发现
·
移动应用
·

使用机构帐号登录

·

联系我们
·
来知乎工作
·
京 ICP 备 13052560 号
·
京公网安备 11010802010035 号

<script type="text/json" class="json-inline" data-name="disabled_components">["back_to_top"]</script> <script type="text/json" class="json-inline" data-name="current_user">["","","","-1","",0,0]</script> <script type="text/json" class="json-inline" data-name="env">["zhihu.com","comet.zhihu.com",false,null,false,false]</script> <script type="text/json" class="json-inline" data-name="ga_vars">{"user_created":0,"now":1479197867000,"abtest_mask":"------------------------------","user_attr":[0,0,0,"-","-"],"user_hash":0}</script> <script src="https://static.zhihu.com/static/revved/-/js/vendor.cb14a042.js"></script> <script src="https://static.zhihu.com/static/revved/-/js/closure/base.3dd70391.js"></script> <script src="https://static.zhihu.com/static/revved/-/js/closure/common.86484a62.js"></script> <script src="https://static.zhihu.com/static/revved/-/js/closure/page-index.ed6159ab.js"></script>
@herewithyou
Copy link

我貌似也是这个问题啊

@herewithyou
Copy link

楼主解决了吗?

@xgxofdream
Copy link
Author

xgxofdream commented Dec 20, 2016 via email

@drogbababa
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants