mirror of
https://github.com/quatalog/quatalog.git
synced 2025-11-30 08:07:34 +00:00
Sort keys
This commit is contained in:
parent
1fa7ab61af
commit
061f9b14e5
|
|
@ -306,7 +306,7 @@ def main():
|
||||||
print(f"Using randomized user agent {user_agent}", file=sys.stderr)
|
print(f"Using randomized user agent {user_agent}", file=sys.stderr)
|
||||||
|
|
||||||
with open(OUT_FILENAME, "w") as transferjson:
|
with open(OUT_FILENAME, "w") as transferjson:
|
||||||
json.dump(scrape_page(PAGE_NUM_TO_SCRAPE), transferjson, indent=4)
|
json.dump(scrape_page(PAGE_NUM_TO_SCRAPE), transferjson, sort_keys=True, indent=2)
|
||||||
|
|
||||||
driver.quit()
|
driver.quit()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue