Pretty-print JSON (closes #2)

Signed-off-by: Odyssey <hi@odyssey346.dev>
This commit is contained in:
Odyssey
2023-02-13 18:03:11 +01:00
parent b69ae8aad6
commit c1fb71f108
+1 -1
View File
@@ -54,5 +54,5 @@ print("Scraping finished. Saving JSON...")
# save JSON
with open('instances.json', 'w') as outfile:
json.dump(theJson, outfile)
json.dump(theJson, outfile, indent=4)
print("File saved as instances.json")