From e9bbd0f6a8501f4b52143e46ff64421deb2e77b0 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Thu, 8 Sep 2022 18:36:10 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=20=E5=9C=A3?= =?UTF-8?q?=E9=81=97=E7=89=A9=E8=AF=84=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/apihelper/artifact.py | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/modules/apihelper/artifact.py b/modules/apihelper/artifact.py index a5fe6d34..04880b4a 100644 --- a/modules/apihelper/artifact.py +++ b/modules/apihelper/artifact.py @@ -36,9 +36,21 @@ class ArtifactOcrRate: OCR_URL = "https://api.genshin.pub/api/v1/app/ocr" RATE_URL = "https://api.genshin.pub/api/v1/relic/rate" HEADERS = { - "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 " - "(KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36", - "Content-Type": "bot/json; charset=utf-8", + 'authority': 'api.genshin.pub', + 'accept': 'application/json, text/plain, */*', + 'accept-language': 'zh-CN,zh;q=0.9,zh-Hans;q=0.8,und;q=0.7,en;q=0.6,zh-Hant;q=0.5,ja;q=0.4', + 'content-type': 'application/json;charset=UTF-8', + 'dnt': '1', + 'origin': 'https://genshin.pub', + 'referer': 'https://genshin.pub/', + 'sec-ch-ua': '"Chromium";v="104", " Not A;Brand";v="99"', + 'sec-ch-ua-mobile': '?0', + 'sec-ch-ua-platform': '"Windows"', + 'sec-fetch-dest': 'empty', + 'sec-fetch-mode': 'cors', + 'sec-fetch-site': 'same-site', + 'sec-gpc': '1', + 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.115 Safari/537.36', } def __init__(self):