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)