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)
|
||||
|
||||
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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue