Add option to not show 'Not Found!' messages.

pull/178/head
Tait Hoyem 6 years ago
parent eee1be14aa
commit 2750538e2e

@ -132,7 +132,7 @@ def get_response(request_future, error_type, social_network, verbose=False, retr
return None, "", -1
def sherlock(username, site_data, verbose=False, tor=False, unique_tor=False, proxy=None):
def sherlock(username, site_data, verbose=False, tor=False, unique_tor=False, proxy=None, nonotfound=False):
"""Run Sherlock Analysis.
Checks for existence of username on various social media sites.
@ -299,6 +299,7 @@ def sherlock(username, site_data, verbose=False, tor=False, unique_tor=False, pr
exists = "yes"
amount = amount+1
else:
if not nonotfound:
print_not_found(social_network, response_time, verbose)
exists = "no"
@ -309,6 +310,7 @@ def sherlock(username, site_data, verbose=False, tor=False, unique_tor=False, pr
exists = "yes"
amount = amount+1
else:
if not nonotfound:
print_not_found(social_network, response_time, verbose)
exists = "no"
@ -324,6 +326,7 @@ def sherlock(username, site_data, verbose=False, tor=False, unique_tor=False, pr
exists = "yes"
amount = amount+1
else:
if not nonotfound:
print_not_found(social_network, response_time, verbose)
exists = "no"
@ -408,6 +411,10 @@ def main():
"The script will check if the proxies supplied in the .csv file are working and anonymous."
"Put 0 for no limit on successfully checked proxies, or another number to institute a limit."
)
parser.add_argument("--nonotfound",
action="store_true", dest="nonotfound", default=False,
help="Do not output sites where the username was not found."
)
parser.add_argument("username",
nargs='+', metavar='USERNAMES',
action="store",
@ -563,7 +570,7 @@ def main():
results = {}
results = sherlock(username, site_data, verbose=args.verbose,
tor=args.tor, unique_tor=args.unique_tor, proxy=args.proxy)
tor=args.tor, unique_tor=args.unique_tor, proxy=args.proxy, nonotfound=args.nonotfound)
exists_counter = 0
for website_name in results:

Loading…
Cancel
Save