HonkaiStarRailWikiDataParser/res_func/url.py
2024-03-29 22:22:12 +08:00

39 lines
1.6 KiB
Python

import base64
base_data_url = base64.b64decode(
"aHR0cHM6Ly9yYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tL0RpbWJyZWF0aC9TdGFyUmFpbERhdGEvbWFzdGVyLw=="
).decode("utf-8")
avatar_config = f"{base_data_url}ExcelOutput/AvatarConfig.json"
text_map = f"{base_data_url}TextMap/TextMapCHS.json"
relic_config = f"{base_data_url}ExcelOutput/RelicConfig.json"
relic_main_affix_config = f"{base_data_url}ExcelOutput/RelicMainAffixConfig.json"
relic_sub_affix_config = f"{base_data_url}ExcelOutput/RelicSubAffixConfig.json"
avatar_player_icon_url = f"{base_data_url}ExcelOutput/AvatarPlayerIcon.json"
player_icon_url = f"{base_data_url}ExcelOutput/PlayerIcon.json"
item_player_card_url = f"{base_data_url}ExcelOutput/ItemPlayerCard.json"
phone_theme_url = f"{base_data_url}ExcelOutput/PhoneThemeConfig.json"
base_station_url = "https://starrailstation.com"
avatar_url = f"{base_station_url}/cn/characters"
light_cone_url = f"{base_station_url}/cn/equipment"
relic_url = f"{base_station_url}/cn/relics"
icons_url = f"{base_station_url}/cn/icons"
base_yatta_url = "https://api.yatta.top"
avatar_yatta_url = f"{base_yatta_url}/hsr/v2/cn/avatar"
avatar_skill_url = f"{base_yatta_url}/hsr/assets/UI/skill/"
light_cone_yatta_url = f"{base_yatta_url}/hsr/v2/cn/equipment"
material_yatta_url = f"{base_yatta_url}/hsr/v2/cn/item"
relic_yatta_url = f"{base_yatta_url}/hsr/v2/cn/relic"
base_enka_url = "https://enka.network/ui/hsr/"
base_hoyoverse_url = "https://act-webstatic.hoyoverse.com/"
hoyoverse_game_url = f"{base_hoyoverse_url}game_record/hkrpg/"
base_mihoyo_url = "https://act-webstatic.mihoyo.com/"
mihoyo_game_url = f"{base_mihoyo_url}game_record/hkrpg/"