Update 'crawler.py'

This commit is contained in:
Kale 2021-08-02 08:34:51 -07:00
parent 68876217d9
commit 8ed6f4c3f2
No known key found for this signature in database
GPG Key ID: F8A6CE83F1274467

View File

@ -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']))