Sort keys

This commit is contained in:
powe97 2024-03-16 01:07:16 -04:00
parent 1fa7ab61af
commit 061f9b14e5
No known key found for this signature in database
GPG Key ID: 7D1663B10978D1BA
1 changed files with 1 additions and 1 deletions

View File

@ -306,7 +306,7 @@ def main():
print(f"Using randomized user agent {user_agent}", file=sys.stderr)
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()