Incredibly fast crawler designed for OSINT.
added directory argument
Somdev Sangwan68afb657cbb3
diff --git a/plugins/exporter.py b/plugins/exporter.pyindex 6d93237..6907f08 100644--- a/plugins/exporter.py+++ b/plugins/exporter.py@@ -14,11 +14,11 @@ json_dict = {'processed' : []}-def exporter(method, *datasets):+def exporter(directory, method, *datasets):if method.lower() == 'json':for data, json_list in zip(datasets, json_dict): # iterating over two two arrays at once- json_dict[json_list] = data # replace blank lists in json_dict with results+ json_dict[json_list] = list(data) # replace blank lists in json_dict with resultsjson_string = json.dumps(json_dict, indent=4) # convert json_dict to a json styled string- savefile = open('exported.json', 'w+')+ savefile = open('%s/exported.json' % directory, 'w+') # savesavefile.write(json_string)- savefile.close()\ No newline at end of file+ savefile.close()