mwmbl/analyse/export_top_domains.py

14 lines
317 B
Python
Raw Permalink Normal View History

2022-01-23 22:04:30 +00:00
import json
2023-10-10 12:51:06 +00:00
from mwmbl.indexer import TOP_DOMAINS_JSON_PATH
from mwmbl.hn_top_domains_filtered import DOMAINS
2022-01-23 22:04:30 +00:00
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()