Skip to content

Commit

Permalink
修复,获取验证码 url 拼接少了一个等号
Browse files Browse the repository at this point in the history
  • Loading branch information
xchaoinfo authored Jul 21, 2016
1 parent 1a892b6 commit e7ee422
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 001 zhihu/zhihu.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def get_xsrf():
# 获取验证码
def get_captcha():
t = str(int(time.time()*1000))
captcha_url = 'https://www.zhihu.com/captcha.gif?r' + t + "&type=login"
captcha_url = 'https://www.zhihu.com/captcha.gif?r=' + t + "&type=login"
r = session.get(captcha_url, headers=headers)
with open('captcha.jpg', 'wb') as f:
f.write(r.content)
Expand Down

0 comments on commit e7ee422

Please sign in to comment.