Skip to content

Incredibly fast crawler designed for OSINT.

Fixes unicode output and well....fuck

Somdev Sangwanf697227b357e
diff --git a/core/utils.py b/core/utils.py
index d79cf20..d7f0d02 100644
--- a/core/utils.py
+++ b/core/utils.py
@@ -41,7 +41,8 @@ def is_link(url, processed, files):
is_file = url.endswith(BAD_TYPES)
if is_file:
files.add(url)
- return is_file
+ return False
+ return True
return False
@@ -78,7 +79,7 @@ def writer(datasets, dataset_names, output_dir):
filepath = output_dir + '/' + dataset_name + '.txt'
with open(filepath, 'w+') as out_file:
joined = '\n'.join(dataset)
- out_file.write(str(joined.encode('utf-8')))
+ out_file.write(str(joined.encode('utf-8').decode('utf-8')))
out_file.write('\n')
def timer(diff, processed):