small bug fixes i did

pull/1283/head
MoMMde 3 years ago
parent 68e547b5da
commit 90154b2d22
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 = major + "." + minor + "." + str(sys.version_info[2])
python_version = str(major) + "." + str(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))

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

@ -244,7 +244,7 @@ def sherlock(username, site_data, query_notify,
request_method = net_info.get("request_method")
request_payload = net_info.get("request_payload")
request = None
if request_method is not None:
if request_method == "GET":
request = session.get

@ -115,7 +115,6 @@ class SitesInformation():
raise FileNotFoundError(f"Incorrect JSON file extension for data file '{data_file_path}'.")
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