mwmbl/analyse/export_top_domains.py
2023-10-10 13:51:06 +01:00

13 lines
317 B
Python

import json
from mwmbl.indexer import TOP_DOMAINS_JSON_PATH
from mwmbl.hn_top_domains_filtered import DOMAINS
def export_top_domains_to_json():
with open(TOP_DOMAINS_JSON_PATH, 'w') as output_file:
json.dump(DOMAINS, output_file, indent=2)
if __name__ == '__main__':
export_top_domains_to_json()