Merge branch 'Andrew-9/err-code'

pull/84/head
Yahya SayadArbabi 5 years ago
commit 2cbb28e481

@ -560,5 +560,11 @@
"urlMain": "https://coderwall.com/",
"errorType": "message",
"errorMsg": "404! Our feels when that url is used"
},
"Wikipedia": {
"url": "https://www.wikipedia.org/wiki/User:{}",
"urlMain": "https://www.wikipedia.org/",
"errorType": "message",
"errorMsg": "If a page was recently created here, it may not be visible yet because of a delay in updating the database"
}
}

@ -21,7 +21,7 @@ from requests_futures.sessions import FuturesSession
from torrequest import TorRequest
module_name = "Sherlock: Find Usernames Across Social Networks"
__version__ = "0.1.0"
__version__ = "0.1.1"
amount=0
# TODO: fix tumblr
@ -80,7 +80,7 @@ def sherlock(username, verbose=False, tor=False, unique_tor=False):
there was an HTTP error when checking for existence.
"""
global amount
fname = username + ".txt"
fname = username.lower() + ".txt"
if os.path.isfile(fname):
os.remove(fname)
@ -206,8 +206,8 @@ def sherlock(username, verbose=False, tor=False, unique_tor=False):
exists = "no"
elif error_type == "status_code":
# Checks if the status code of the response is 404
if not r.status_code == 404:
# Checks if the status code of the response is 2XX
if not r.status_code >= 300 or r.status_code < 200:
print("\033[37;1m[\033[92;1m+\033[37;1m]\033[92;1m {}:\033[0m".format(social_network), url)
write_to_file(url, fname)

@ -1,4 +1,4 @@
## List Of Supported Sites (99 Sites In Total!)
## List Of Supported Sites (100 Sites In Total!)
1. [Instagram](https://www.instagram.com/)
2. [Twitter](https://www.twitter.com/)
3. [Facebook](https://www.facebook.com/)
@ -98,3 +98,4 @@
97. [House-Mixes.com](https://www.house-mixes.com/)
98. [Letterboxd](https://letterboxd.com/)
99. [Coderwall](https://coderwall.com/)
100. [Wikipedia](https://www.wikipedia.org/)

Loading…
Cancel
Save