Upload files to "RecNet"

This commit is contained in:
2026-07-26 23:32:39 +00:00
parent 408381bb62
commit d99a815565
6 changed files with 460 additions and 0 deletions

27
RecNet/AvatarItemGen.py Normal file
View File

@@ -0,0 +1,27 @@
import json
import ProgramUtils
import data
import sys
import requests
name = f"{__name__}.py"
def gen(writeFile: str):
print(f"[{name}] Downloadimg")
sk = requests.request("GET", f"{data.dataUrl}AvatarItems.json")
if sk.status_code != 200:
print(f"ERROR HTTP: {sk.status_code}")
input()
sys.exit()
try:
sk = sk.json()
except:
print(f"ERROR JSON: 0001")
input()
sys.exit()
with open(writeFile, "w") as f:
json.dump(sk, f, indent=2)
print(f"[{name}] Done")