Skip to content

Commit

Permalink
请求头增加Referer防止返回403
Browse files Browse the repository at this point in the history
  • Loading branch information
AuYang261 committed May 31, 2024
1 parent 1d6390e commit e68693d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

headers = {
"Origin": "https://www.yanhekt.cn",
"Referer": "https://www.yanhekt.cn/",
"xdomain-client": "web_user",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 Edg/107.0.1418.26",
}
Expand Down

0 comments on commit e68693d

Please sign in to comment.