diff --git a/crawler.py b/crawler.py index d0e6fb5..dba4b1a 100644 --- a/crawler.py +++ b/crawler.py @@ -79,7 +79,7 @@ def filteringcon(filters_regex_one): lines = f.read().splitlines() with open(filters_regex_one, 'w') as f: for line in lines: - f.write('\n'.join(line.split())) + f.write('\n'.join(line.split('\n'))) def killingdup(duplicated_file): print('Getting rid of duplicated line')