diff --git a/transfer_scraper/scrape_page.py b/transfer_scraper/scrape_page.py index 3c1795c..b1dd551 100644 --- a/transfer_scraper/scrape_page.py +++ b/transfer_scraper/scrape_page.py @@ -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()