From c064452e43e625ff2278f545e0986a66cb17d272 Mon Sep 17 00:00:00 2001 From: LWR Date: Wed, 10 Jan 2024 20:03:29 +0800 Subject: [PATCH] fix: Fixed ResponseCodeException -352 in dynamic push --- starbot/utils/network.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/starbot/utils/network.py b/starbot/utils/network.py index 778e0ca..4939de1 100644 --- a/starbot/utils/network.py +++ b/starbot/utils/network.py @@ -73,7 +73,7 @@ async def request(method: str, # 使用 Referer 和 UA 请求头以绕过反爬虫机制 default_headers = { "Referer": "https://www.bilibili.com", - "User-Agent": "Mozilla/5.0" + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36 Core/1.94.218.400 QQBrowser/12.1.5496.400" } headers = default_headers