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
|
2022-06-27 21:46:06 +00:00
|
|
|
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()
|