mirror of
https://github.com/minoplhy/filters-maker.git
synced 2024-12-22 18:18:13 +00:00
Update 'crawler.py'
This commit is contained in:
parent
68876217d9
commit
8ed6f4c3f2
@ -73,7 +73,7 @@ def excluded(excluded_file ,incoming):
|
||||
exclude = f.read().split()
|
||||
with open(incoming ,'r') as f:
|
||||
lines = f.read().splitlines() # read lines
|
||||
with open(output ,'w') as f:
|
||||
with open(incoming ,'w') as f:
|
||||
for line in lines:
|
||||
if line.strip() and not line in exclude and not line.startswith(';'):
|
||||
f.write('\n'.join([line + ' CNAME .\n']))
|
||||
|
Loading…
Reference in New Issue
Block a user