Skip to content

Commit 4f3bffa

Browse files
committed
fix: v2ex checkin
1 parent e3056f2 commit 4f3bffa

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

v2ex/v2ex.py

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,21 @@
1010
time = datetime.now() + timedelta(hours=8)
1111
message = time.strftime("%Y/%m/%d %H:%M:%S") + " from V2EX \n"
1212
headers = {
13-
"Referer": "https://www.v2ex.com/mission/daily",
14-
"Host": "www.v2ex.com",
15-
"user-agent": "Mozilla/5.0 (Linux; Android 10; Redmi K30) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.83 Mobile Safari/537.36",
16-
"cookie": f"'{cookie}'"
13+
"accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
14+
"accept-language": "en-US,en;q=0.9",
15+
"cache-control": "no-cache",
16+
"pragma": "no-cache",
17+
"referer": "https://www.v2ex.com/mission/daily",
18+
"sec-ch-ua": '"Chromium";v="142", "Google Chrome";v="142", "Not_A Brand";v="99"',
19+
"sec-ch-ua-mobile": "?0",
20+
"sec-ch-ua-platform": '"macOS"',
21+
"sec-fetch-dest": "document",
22+
"sec-fetch-mode": "navigate",
23+
"sec-fetch-site": "same-origin",
24+
"sec-fetch-user": "?1",
25+
"upgrade-insecure-requests": "1",
26+
"user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36",
27+
"cookie": f"'{cookie}'",
1728
}
1829

1930
def get_once() -> tuple[str, bool]:

0 commit comments

Comments
 (0)