mirror of
https://github.com/MinazukiAmane/AnimeGame-Download-Library.git
synced 2025-03-15 10:05:50 +08:00
add 3 more
This commit is contained in:
parent
c65fce7472
commit
045354d7ba
30
First Anime Game/FirstAnimeGameKR.py
Normal file
30
First Anime Game/FirstAnimeGameKR.py
Normal file
@ -0,0 +1,30 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import sys
|
||||
import json
|
||||
import requests
|
||||
import collections
|
||||
if __name__ == "__main__":
|
||||
with open('KR.md','a+') as readme:
|
||||
readme.seek(0)
|
||||
sys.stdout = readme
|
||||
stringContent=str(requests.get('https://id-public-api.serenetia.com/api/bh3_kr').content,'utf-8')
|
||||
jsonFile=json.loads(readme.read().strip().strip('```'),object_pairs_hook=collections.OrderedDict)
|
||||
changed = False
|
||||
pre_download_game=None
|
||||
try:
|
||||
pre_download_game=json.loads(stringContent)['data']['pre_download_game']
|
||||
except:
|
||||
pre_download_game=""
|
||||
if jsonFile['pre_download_game']!=pre_download_game:
|
||||
jsonFile['pre_download_game']=pre_download_game
|
||||
changed=True
|
||||
latest=json.loads(stringContent)['data']['game']['latest']
|
||||
if jsonFile['latest']!=latest:
|
||||
deprecated_packages=jsonFile['deprecated_packages']
|
||||
deprecated_packages.append(jsonFile['latest'])
|
||||
jsonFile['latest']=latest
|
||||
changed=True
|
||||
if changed:
|
||||
readme.seek(0)
|
||||
readme.truncate()
|
||||
print('```\n'+json.dumps(jsonFile,ensure_ascii=False,indent=4,separators=(',',':'))+'\n```')
|
30
First Anime Game/FirstAnimeGameSEA.py
Normal file
30
First Anime Game/FirstAnimeGameSEA.py
Normal file
@ -0,0 +1,30 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import sys
|
||||
import json
|
||||
import requests
|
||||
import collections
|
||||
if __name__ == "__main__":
|
||||
with open('SEA.md','a+') as readme:
|
||||
readme.seek(0)
|
||||
sys.stdout = readme
|
||||
stringContent=str(requests.get('https://id-public-api.serenetia.com/api/bh3_overseas').content,'utf-8')
|
||||
jsonFile=json.loads(readme.read().strip().strip('```'),object_pairs_hook=collections.OrderedDict)
|
||||
changed = False
|
||||
pre_download_game=None
|
||||
try:
|
||||
pre_download_game=json.loads(stringContent)['data']['pre_download_game']
|
||||
except:
|
||||
pre_download_game=""
|
||||
if jsonFile['pre_download_game']!=pre_download_game:
|
||||
jsonFile['pre_download_game']=pre_download_game
|
||||
changed=True
|
||||
latest=json.loads(stringContent)['data']['game']['latest']
|
||||
if jsonFile['latest']!=latest:
|
||||
deprecated_packages=jsonFile['deprecated_packages']
|
||||
deprecated_packages.append(jsonFile['latest'])
|
||||
jsonFile['latest']=latest
|
||||
changed=True
|
||||
if changed:
|
||||
readme.seek(0)
|
||||
readme.truncate()
|
||||
print('```\n'+json.dumps(jsonFile,ensure_ascii=False,indent=4,separators=(',',':'))+'\n```')
|
30
First Anime Game/FirstAnimeGameTW.py
Normal file
30
First Anime Game/FirstAnimeGameTW.py
Normal file
@ -0,0 +1,30 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import sys
|
||||
import json
|
||||
import requests
|
||||
import collections
|
||||
if __name__ == "__main__":
|
||||
with open('TW.md','a+') as readme:
|
||||
readme.seek(0)
|
||||
sys.stdout = readme
|
||||
stringContent=str(requests.get('https://id-public-api.serenetia.com/api/bh3_tw').content,'utf-8')
|
||||
jsonFile=json.loads(readme.read().strip().strip('```'),object_pairs_hook=collections.OrderedDict)
|
||||
changed = False
|
||||
pre_download_game=None
|
||||
try:
|
||||
pre_download_game=json.loads(stringContent)['data']['pre_download_game']
|
||||
except:
|
||||
pre_download_game=""
|
||||
if jsonFile['pre_download_game']!=pre_download_game:
|
||||
jsonFile['pre_download_game']=pre_download_game
|
||||
changed=True
|
||||
latest=json.loads(stringContent)['data']['game']['latest']
|
||||
if jsonFile['latest']!=latest:
|
||||
deprecated_packages=jsonFile['deprecated_packages']
|
||||
deprecated_packages.append(jsonFile['latest'])
|
||||
jsonFile['latest']=latest
|
||||
changed=True
|
||||
if changed:
|
||||
readme.seek(0)
|
||||
readme.truncate()
|
||||
print('```\n'+json.dumps(jsonFile,ensure_ascii=False,indent=4,separators=(',',':'))+'\n```')
|
18
First Anime Game/KR.md
Normal file
18
First Anime Game/KR.md
Normal file
@ -0,0 +1,18 @@
|
||||
```
|
||||
{
|
||||
"pre_download_game":null,
|
||||
"latest":{
|
||||
"name":"",
|
||||
"version":"7.1.0",
|
||||
"path":"https://hk-bigfile-kr-mihayo.akamaized.net/ptpublic/bh3_kr/20231204164421_f2LYhhAJyW903nQN/BH3_v7.1.0_d4bd6e31f501.7z",
|
||||
"size":"28902945884",
|
||||
"md5":"7582abb3abac23c1702cc76d9582832d",
|
||||
"entry":"BH3.exe",
|
||||
"voice_packs":[],
|
||||
"decompressed_path":"https://hk-bigfile-kr-mihayo.akamaized.net/ptpublic/bh3_kr/20231204164421_f2LYhhAJyW903nQN/extract",
|
||||
"segments":[],
|
||||
"package_size":"14446230062"
|
||||
},
|
||||
"deprecated_packages":[]
|
||||
}
|
||||
```
|
18
First Anime Game/SEA.md
Normal file
18
First Anime Game/SEA.md
Normal file
@ -0,0 +1,18 @@
|
||||
```
|
||||
{
|
||||
"pre_download_game":null,
|
||||
"latest":{
|
||||
"name":"",
|
||||
"version":"7.1.0",
|
||||
"path":"https://hk-bigfile-os-mihayo.akamaized.net/ptpublic/bh3_overseas/20231204163705_6YUz9B725pAbnqVL/BH3_v7.1.0_d4bd6e31f501.7z",
|
||||
"size":"29925425724",
|
||||
"md5":"1311929d0b81541f6971e9232e945232",
|
||||
"entry":"BH3.exe",
|
||||
"voice_packs":[],
|
||||
"decompressed_path":"https://hk-bigfile-os-mihayo.akamaized.net/ptpublic/bh3_overseas/20231204163705_6YUz9B725pAbnqVL/extract",
|
||||
"segments":[],
|
||||
"package_size":"14957469982"
|
||||
},
|
||||
"deprecated_packages":[]
|
||||
}
|
||||
```
|
18
First Anime Game/TW.md
Normal file
18
First Anime Game/TW.md
Normal file
@ -0,0 +1,18 @@
|
||||
```
|
||||
{
|
||||
"pre_download_game":null,
|
||||
"latest":{
|
||||
"name":"",
|
||||
"version":"7.1.0",
|
||||
"path":"https://hk-bigfile-asia-mihayo.akamaized.net/ptpublic/bh3_tw/20231204164327_8tpPZqik6C0x1DO1/BH3_v7.1.0_d4bd6e31f501.7z",
|
||||
"size":"28947197292",
|
||||
"md5":"c63cfa0d5c8a217f2465d2dbcd39516c",
|
||||
"entry":"BH3.exe",
|
||||
"voice_packs":[],
|
||||
"decompressed_path":"https://hk-bigfile-asia-mihayo.akamaized.net/ptpublic/bh3_tw/20231204164327_8tpPZqik6C0x1DO1/extract",
|
||||
"segments":[],
|
||||
"package_size":"14468355766"
|
||||
},
|
||||
"deprecated_packages":[]
|
||||
}
|
||||
```
|
Loading…
x
Reference in New Issue
Block a user