Skip to content

Commit

Permalink
知乎 UUA
Browse files Browse the repository at this point in the history
  • Loading branch information
zkeq committed Jul 9, 2022
1 parent b68b133 commit 55af4b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

def get_zhihu_days(index):
headers = {
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.66 Safari/537.36 Edg/103.0.1264.44"
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.66 Safari/537.36 Edg/103.0.1264.44"
}
base_url = f"https://www.zhihu.com/api/v4/columns/c_1261258401923026944/items?limit=1&offset={index}"
data = requests.get(base_url, headers=headers).json()
Expand Down

0 comments on commit 55af4b2

Please sign in to comment.