more refactoring done

pull/1283/head
MoMMde 3 years ago
parent 4a47616cc6
commit 68e547b5da
No known key found for this signature in database
GPG Key ID: EBD6BDF2493425AC

@ -20,7 +20,7 @@ if __name__ == "__main__":
major = sys.version_info[0]
minor = sys.version_info[1]
python_version = str(sys.version_info[0])+"."+str(sys.version_info[1])+"."+str(sys.version_info[2])
python_version = major + "." + minor + "." + str(sys.version_info[2])
if major != 3 or major == 3 and minor < 6:
print("Sherlock requires Python 3.6+\nYou are using Python %s, which is not supported by Sherlock" % (python_version))

@ -173,9 +173,8 @@ class QueryNotifyPrint(QueryNotify):
"""
self.result = result
if self.verbose == False or self.result.query_time is None:
response_time_text = ""
else:
if self.verbose == True or self.result.query_time is not None:
response_time_text = f" [{round(self.result.query_time * 1000)} ms]"
# Output to the terminal is desired.

@ -3,11 +3,8 @@
This module supports storing information about web sites.
This is the raw data that will be used to search for usernames.
"""
import os
import json
import operator
import requests
import sys
class SiteInformation():
@ -117,7 +114,8 @@ class SitesInformation():
if not data_file_path.lower().endswith(".json"):
raise FileNotFoundError(f"Incorrect JSON file extension for data file '{data_file_path}'.")
if "http://" == data_file_path[:7].lower() or "https://" == data_file_path[:8].lower():
if data_file_path.lower().startswith("http"):
#if "http://" == data_file_path[:7].lower() or "https://" == data_file_path[:8].lower():
# Reference is to a URL.
try:
response = requests.get(url=data_file_path)

Loading…
Cancel
Save