Everlusting Life资源下载脚本
import os
import requests
import re
if 1:
if 1:
main_version = input('version eg:2.0.0>')
url = "https://assetservice.adult-chess.com/ac/get_assets_with_als"
headers = {
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36 Edg/137.0.0.0",
"x-country": "JP",
"accept": "*/*",
"accept-encoding": "gzip, deflate, br, zstd",
"accept-language": "zh-CN,zh;q=0.9",
"content-type": "application/json"
}
payload = {
"state": f"ac-release-v{main_version}",
"static_type": "webgl_bundles"
}
try:
response = requests.post(url, headers=headers, json=payload)
response.raise_for_status()
data = response.json()
aria2_commands = []
if "result" in data and "assets" in data["result"]:
for category, items in data["result"]["assets"].items():
for item in items:
file_url = item.get("url", "")
if file_url:
path_parts = file_url.split("/webgl_bundles/")[-1]
output_path = f"download/webgl_bundles/{path_parts}"
command = f"{file_url}\n out={output_path}"
aria2_commands.append(command)
with open("everlustinglife.txt", "w", encoding="utf-8") as f:
f.write("\n".join(aria2_commands))
print(f"保存成功:everlustinglife.txt,共{len(aria2_commands)}个下载链接")
os.system("aria2c -i everlustinglife.txt -j 32 -s 16 -x 16 --check-certificate=false --dir=resdownload/everlustinglife")
except requests.RequestException as e:
print("请求失败:", e)
except ValueError:
print("响应不是有效的 JSON")
except Exception as e:
print("发生错误:", e)
欲望女神
import os
import requests
main_version = input('version eg:7.0.0>')
url = "https://6cc9.prod.assetservice.chickgoddess.com/aw/get_assets_with_als"
headers = {
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36 Edg/137.0.0.0",
"x-country": "JP",
"pnk-abtest-group": "Base",
"accept": "*/*",
"origin": "https://client.chickgoddess.com",
"sec-fetch-site": "same-site",
"sec-fetch-mode": "cors",
"sec-fetch-dest": "empty",
"referer": "https://client.chickgoddess.com/",
"accept-encoding": "gzip, deflate, br, zstd",
"accept-language": "zh-CN,zh;q=0.9"
}
# 需要 MessagePack 编码的数据
payload = {
"state": f"aw-release-v{main_version}",
"static_type": "webgl_bundles",
"assets_names": None
}
try:
response = requests.post(url, headers=headers, json=payload)
response.raise_for_status()
data = response.json()
aria2_commands = []
if "result" in data and "assets" in data["result"]:
for category, items in data["result"]["assets"].items():
for item in items:
file_url = item.get("url", "")
if file_url:
path_parts = file_url.split("/webgl_bundles/")[-1]
output_path = f"download/webgl_bundles/{path_parts}"
command = f"{file_url}\n out={output_path}"
aria2_commands.append(command)
with open("ywns.txt", "w", encoding="utf-8") as f:
f.write("\n".join(aria2_commands))
print(f"保存成功:ywns.txt,共{len(aria2_commands)}个下载链接")
os.system("aria2c -i ywns.txt -j 32 -s 16 -x 16 --check-certificate=false --dir=resdownload/欲望女神")
except requests.RequestException as e:
print("请求失败:", e)
except ValueError:
print("响应不是有效的 JSON")
except Exception as e:
print("发生错误:", e)