From 0ef9aa2131913c52e219b207aeb242957144172d Mon Sep 17 00:00:00 2001 From: fllesser Date: Thu, 9 Jan 2025 11:27:35 +0800 Subject: [PATCH] update shop.py --- nonebot_plugin_fortnite/shop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nonebot_plugin_fortnite/shop.py b/nonebot_plugin_fortnite/shop.py index 968f25c..e967c0c 100644 --- a/nonebot_plugin_fortnite/shop.py +++ b/nonebot_plugin_fortnite/shop.py @@ -18,7 +18,7 @@ async def screenshot_shop_img() -> Path: browser = await p.chromium.launch(headless=True) # 启动无头模式的 Chromium 浏览器 # page = await browser.new_page() context = await browser.new_context( - extra_http_headers=headers = { + extra_http_headers = { 'User-Agent': "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36", '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.9", 'Accept-Encoding': "gzip, deflate",