wynnbuilder-forked-for-changes/dump.py

8 lines
212 B
Python
Raw Normal View History

2021-01-06 06:10:27 +00:00
import requests
import json
response = requests.get("https://api.wynncraft.com/public_api.php?action=itemDB&category=all")
with open("dump.json", "w") as outfile:
2021-01-06 08:40:51 +00:00
outfile.write(json.dumps(response.json()))