Skip to content

Commit

Permalink
修复 浏览器 agent 过期
Browse files Browse the repository at this point in the history
在我这里使用的时候浏览器 agent 过期,我用我目前使用的 agent 代替了一下,希望有效。
  • Loading branch information
yueyangming committed Mar 17, 2017
1 parent 1f7e440 commit cee2ef7
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 @@ -28,7 +28,7 @@


# 构造 Request headers
agent = 'Mozilla/5.0 (Windows NT 5.1; rv:33.0) Gecko/20100101 Firefox/33.0'
agent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87'
headers = {
"Host": "www.zhihu.com",
"Referer": "https://www.zhihu.com/",
Expand Down

0 comments on commit cee2ef7

Please sign in to comment.