From 8897e637b2668b51ef2587b6fee60baca1f05be7 Mon Sep 17 00:00:00 2001 From: minoplhy Date: Thu, 12 Aug 2021 15:16:39 +0700 Subject: [PATCH] Try to fix line --- crawler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crawler.py b/crawler.py index 0dedcad..45ff143 100644 --- a/crawler.py +++ b/crawler.py @@ -49,7 +49,7 @@ def filteringcon(filters_regex_one): with open(filters_regex_one, 'r') as f: for line in f: for word in a: - if word in line and not line.startswith('#') and line.startswith((tuple(a))) and not '.' in line: + if word in line and not line.startswith('#') and line.startswith((tuple(word))): line = line.replace(word,'') else: line = line.replace(line, line)