1
0
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:
Kale 2021-08-07 23:48:33 -07:00
parent 942122edec
commit 164177ee1c
No known key found for this signature in database
GPG Key ID: F8A6CE83F1274467

View File

@ -72,6 +72,7 @@ def filteringcon(filters_regex_one):
for i in range(len(file)):
file[i] = re.sub('\s\s+', ' ', file[i])
file[i] = re.sub('#..*', '', file[i])
file[i] = re.sub(';..*', '', file[i])
with open(filters_regex_one, 'w') as f1:
f1.writelines(["%s\n" % item for item in file])
f.close()