From 3fc75aea3f5656d99ded1e535a3ff1b2a9ac3852 Mon Sep 17 00:00:00 2001 From: Andrew Yatzkan Date: Thu, 3 Jan 2019 17:35:28 -0600 Subject: [PATCH 1/4] Added wikipedia.org --- data.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/data.json b/data.json index 616a8678..f392440b 100644 --- a/data.json +++ b/data.json @@ -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" } } From ab99ee016e28ba0535e2056767332410b819daf6 Mon Sep 17 00:00:00 2001 From: Andrew Yatzkan Date: Thu, 3 Jan 2019 17:44:24 -0600 Subject: [PATCH 2/4] Made .txt file case insensitive --- sherlock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sherlock.py b/sherlock.py index 93ea0296..2f5ea07d 100644 --- a/sherlock.py +++ b/sherlock.py @@ -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) From 2d50409428259d0b291ef33a279021645b0c690a Mon Sep 17 00:00:00 2001 From: Andrew Yatzkan Date: Thu, 3 Jan 2019 18:04:52 -0600 Subject: [PATCH 3/4] Changed error code from 404 to not 2XX --- sherlock.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sherlock.py b/sherlock.py index 2f5ea07d..513c737e 100644 --- a/sherlock.py +++ b/sherlock.py @@ -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) From 3b5263c5bdf0f1a70e3d5371d99fff51d5633a99 Mon Sep 17 00:00:00 2001 From: Yahya SayadArbabi Date: Fri, 4 Jan 2019 11:02:19 +0330 Subject: [PATCH 4/4] Add Wikipedia --- sherlock.py | 2 +- sites.md | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sherlock.py b/sherlock.py index 513c737e..d73ab5d5 100644 --- a/sherlock.py +++ b/sherlock.py @@ -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 diff --git a/sites.md b/sites.md index 7f75d9cf..2a6ea425 100644 --- a/sites.md +++ b/sites.md @@ -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/)