AWAvenue-Ads-Rule/script/Mosdns_v5.py
2024-05-05 07:13:38 +08:00

16 lines
358 B
Python

import json
def format_domain(domain_file):
domain = [""]
with open(domain_file, 'r') as file:
lines = file.readlines()
for line in lines:
domain_lines = f"domain:{line.strip()}"
domain.append(domain_lines)
return domain
def build(domain_file, regex_file):
return format_domain(domain_file)