From ec58514b24de84d04b7c09e1e86be37e90ca4c0c Mon Sep 17 00:00:00 2001 From: Beam OP Date: Thu, 3 Jan 2019 17:32:08 +0100 Subject: [PATCH 1/8] Updated DailyMotion errorType --- data.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/data.json b/data.json index 616a8678..cd52edf1 100644 --- a/data.json +++ b/data.json @@ -167,8 +167,7 @@ "DailyMotion": { "url": "https://www.dailymotion.com/{}", "urlMain": "https://www.dailymotion.com/", - "errorType": "message", - "errorMsg": "Page not found" + "errorType": "status_code" }, "Etsy": { "url": "https://www.etsy.com/shop/{}", From 3fc75aea3f5656d99ded1e535a3ff1b2a9ac3852 Mon Sep 17 00:00:00 2001 From: Andrew Yatzkan Date: Thu, 3 Jan 2019 17:35:28 -0600 Subject: [PATCH 2/8] 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 3/8] 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 4/8] 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 5/8] 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/) From af2de2380e4f922390c9c4a9ef70e783d071fd0d Mon Sep 17 00:00:00 2001 From: Yahya SayadArbabi Date: Fri, 4 Jan 2019 11:40:28 +0330 Subject: [PATCH 6/8] Add to docker hub --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 2368af15..d66a6921 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,12 @@ The ```--rm``` flag is optional. It removes the container filesystem after runn One caveat is the text file that is created will only exist in the container so you will not be able to get at that. + +Or you can simply use docker to run `sherlock`: +``` +docker run theyahya/sherlock user123 +``` + ## License MIT License From 287305a12ca74c133c397dd3065c50727831547d Mon Sep 17 00:00:00 2001 From: Yahya SayadArbabi Date: Fri, 4 Jan 2019 11:42:00 +0330 Subject: [PATCH 7/8] bump version --- sherlock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sherlock.py b/sherlock.py index d73ab5d5..007980ed 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.1" +__version__ = "0.1.2" amount=0 # TODO: fix tumblr From 30eb9c76ec7e5941ae38311602bf4799d198f4f6 Mon Sep 17 00:00:00 2001 From: Yahya SayadArbabi Date: Fri, 4 Jan 2019 11:51:07 +0330 Subject: [PATCH 8/8] bump version --- sherlock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sherlock.py b/sherlock.py index 007980ed..f33c1d41 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.2" +__version__ = "0.1.3" amount=0 # TODO: fix tumblr