Fix bug that incorrectly said that all user names were not supported for any site that would not allow a dot in the user name.

The check for the dot should only happen if the user has a dot in the name.
pull/14/head
Christopher K. Hoadley 6 years ago
parent 7a55917138
commit dd8d36741d

@ -75,8 +75,8 @@ def sherlock(username):
error_type = data.get(social_network).get("errorType")
cant_have_period = data.get(social_network).get("noPeriod")
if cant_have_period == "True":
print("\033[37;1m[\033[91;1m-\033[37;1m]\033[92;1m {}:\033[93;1m Not Found!".format(social_network))
if ("." in username) and (cant_have_period == "True"):
print("\033[37;1m[\033[91;1m-\033[37;1m]\033[92;1m {}:\033[93;1m User Name Not Allowed!".format(social_network))
continue
r, error_type = make_request(url=url, headers=headers, error_type=error_type, social_network=social_network)

Loading…
Cancel
Save