Skip to content

Commit 511f4f6

Browse files
committed
修改登录地址
1 parent ed608af commit 511f4f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

zhihu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def create_session():
8787
'X-Requested-With': "XMLHttpRequest"
8888
}
8989

90-
r = s.post('http://www.zhihu.com/login', data=login_data, headers=header)
90+
r = s.post('http://www.zhihu.com/login/email', data=login_data, headers=header)
9191
if r.json()["r"] == 1:
9292
print "Login Failed, reason is:"
9393
for m in r.json()["msg"]:

0 commit comments

Comments
 (0)