move json output into run_all
This commit is contained in:
parent
0c30535972
commit
ba466810ef
1 changed files with 4 additions and 5 deletions
|
@ -19,10 +19,9 @@ def run_all(args: argparse.Namespace):
|
|||
results.update(scraper.scrape())
|
||||
print(results)
|
||||
|
||||
# Save the results to a JSON file
|
||||
with open('results.json', 'w') as json_file:
|
||||
json.dump(results, json_file, indent=4)
|
||||
|
||||
# Save the results to a JSON file
|
||||
with open('results.json', 'w') as json_file:
|
||||
json.dump(results, json_file, indent=4)
|
||||
|
||||
|
||||
def import_scrapers():
|
||||
|
|
Loading…
Reference in a new issue