Skip to content

Commit

Permalink
update shop.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fllesser committed Jan 9, 2025
1 parent 2949150 commit 0ef9aa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nonebot_plugin_fortnite/shop.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 0ef9aa2

Please sign in to comment.