diff --git a/crawler.py b/crawler.py index e5fcc1e..1b531b6 100644 --- a/crawler.py +++ b/crawler.py @@ -76,6 +76,7 @@ def filteringcon(filters_regex_one): for line in lines: if not line.endswith((tuple(remove_words))): f.write('\n'.join([line + '\n'])) + f.close() def killingdup(duplicated_file): print('Getting rid of duplicated line')