mirror of
https://github.com/PaiGramTeam/HonkaiStarRailWikiDataParser.git
synced 2024-11-16 06:25:25 +00:00
20 lines
746 B
Python
20 lines
746 B
Python
from httpx import AsyncClient
|
|
|
|
|
|
headers = {
|
|
'authority': 'api-static.mihoyo.com',
|
|
'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',
|
|
'dnt': '1',
|
|
'origin': 'https://bbs.mihoyo.com',
|
|
'referer': 'https://bbs.mihoyo.com/',
|
|
'sec-ch-ua': '"Chromium";v="110", "Not A(Brand";v="24"',
|
|
'sec-ch-ua-mobile': '?0',
|
|
'sec-ch-ua-platform': '"Windows"',
|
|
'sec-fetch-dest': 'empty',
|
|
'sec-fetch-mode': 'cors',
|
|
'sec-fetch-site': 'same-site',
|
|
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36',
|
|
}
|
|
client = AsyncClient(headers=headers, timeout=120.0)
|