check print invalid

pull/372/head
guipleite 5 years ago
parent ad2a935950
commit 81c8c6f0c4

@ -202,9 +202,11 @@ def sherlock(username, site_data, verbose=False, tor=False, unique_tor=False, pr
# Don't make request if username is invalid for the site
regex_check = net_info.get("regexCheck")
if regex_check and re.search(regex_check, username) is None and not print_found_only:
if regex_check and re.search(regex_check, username) is None:
# No need to do the check at the site: this user name is not allowed.
print_invalid(social_network, "Illegal Username Format For This Site!")
if not print_found_only:
print_invalid(social_network, "Illegal Username Format For This Site!")
results_site["exists"] = "illegal"
results_site["url_user"] = ""
results_site['http_status'] = ""

Loading…
Cancel
Save