From 91b6e70887b4d3c45484f69830daab2a7789db9f Mon Sep 17 00:00:00 2001 From: minoplhy Date: Sun, 8 Aug 2021 16:14:58 +0700 Subject: [PATCH] fix lining error --- crawler.py | 1 + 1 file changed, 1 insertion(+) diff --git a/crawler.py b/crawler.py index 00d838d..999cee8 100644 --- a/crawler.py +++ b/crawler.py @@ -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('CNAME . ;..*', '', 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])