|
10 | 10 | time = datetime.now() + timedelta(hours=8) |
11 | 11 | message = time.strftime("%Y/%m/%d %H:%M:%S") + " from V2EX \n" |
12 | 12 | 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}'", |
17 | 28 | } |
18 | 29 |
|
19 | 30 | def get_once() -> tuple[str, bool]: |
|
0 commit comments