results into json
This commit is contained in:
parent
5e95487684
commit
04d13f02c4
1 changed files with 4 additions and 0 deletions
|
@ -23,3 +23,7 @@ def import_scrapers():
|
||||||
directory = Path(__file__).resolve().parent / "scrapers"
|
directory = Path(__file__).resolve().parent / "scrapers"
|
||||||
for module_loader, name, ispkg in pkgutil.iter_modules([directory]):
|
for module_loader, name, ispkg in pkgutil.iter_modules([directory]):
|
||||||
importlib.import_module(f".scrapers.{name}", __package__)
|
importlib.import_module(f".scrapers.{name}", __package__)
|
||||||
|
|
||||||
|
# Save the results to a JSON file
|
||||||
|
with open('results.json', 'w') as json_file:
|
||||||
|
json.dump(results, json_file, indent=4)
|
||||||
|
|
Loading…
Reference in a new issue