wynnbuilder-idk/py_script/script.py

10 lines
255 B
Python
Raw Normal View History

2021-04-21 05:28:16 +00:00
import requests
import json
response = requests.get("https://api.wynncraft.com/public_api.php?action=itemDB&search=atlas").json()
atlas = response['items'][0]
2021-04-21 05:28:16 +00:00
with open('test.json',"w") as outfile:
json.dump(atlas, outfile, indent = 2)
2021-04-21 05:28:16 +00:00
print(atlas)