mirror of
https://github.com/FutaGuard/LowTechFilter.git
synced 2025-06-21 05:21:02 +08:00
6 lines
280 B
Python
6 lines
280 B
Python
with open('../hosts.txt', 'r') as files:
|
|
data = files.read().splitlines()
|
|
output = '\n'.join(e for e in list(filter(lambda x: not x.startswith('/') and not x.startswith('! regex'), data)))
|
|
with open('../domains.txt', 'w') as newoutput:
|
|
newoutput.write(output)
|