mirror of
https://github.com/sherlock-project/sherlock
synced 2024-11-15 16:47:57 +00:00
bump version
This commit is contained in:
commit
992e22059a
2 changed files with 14 additions and 2 deletions
6
.gitignore
vendored
6
.gitignore
vendored
|
@ -1,6 +1,12 @@
|
||||||
# Virtual Environment
|
# Virtual Environment
|
||||||
venv/
|
venv/
|
||||||
|
|
||||||
|
# vscode
|
||||||
|
.vscode/
|
||||||
|
|
||||||
|
# Python
|
||||||
|
__pycache__/
|
||||||
|
|
||||||
# Jupyter Notebook
|
# Jupyter Notebook
|
||||||
.ipynb_checkpoints
|
.ipynb_checkpoints
|
||||||
*.ipynb
|
*.ipynb
|
||||||
|
|
10
sherlock.py
10
sherlock.py
|
@ -21,7 +21,7 @@ from requests_futures.sessions import FuturesSession
|
||||||
from torrequest import TorRequest
|
from torrequest import TorRequest
|
||||||
|
|
||||||
module_name = "Sherlock: Find Usernames Across Social Networks"
|
module_name = "Sherlock: Find Usernames Across Social Networks"
|
||||||
__version__ = "2018.01.03"
|
__version__ = "2018.01.04"
|
||||||
amount=0
|
amount=0
|
||||||
|
|
||||||
# TODO: fix tumblr
|
# TODO: fix tumblr
|
||||||
|
@ -136,8 +136,14 @@ def sherlock(username, verbose=False, tor=False, unique_tor=False):
|
||||||
url = net_info["url"].format(username)
|
url = net_info["url"].format(username)
|
||||||
results_site["url_user"] = url
|
results_site["url_user"] = url
|
||||||
|
|
||||||
|
# If only the status_code is needed don't download the body
|
||||||
|
if net_info["errorType"] == 'status_code':
|
||||||
|
request_method = session.head
|
||||||
|
else:
|
||||||
|
request_method = session.get
|
||||||
|
|
||||||
# This future starts running the request in a new thread, doesn't block the main thread
|
# This future starts running the request in a new thread, doesn't block the main thread
|
||||||
future = session.get(url=url, headers=headers)
|
future = request_method(url=url, headers=headers)
|
||||||
|
|
||||||
# Store future in data for access later
|
# Store future in data for access later
|
||||||
net_info["request_future"] = future
|
net_info["request_future"] = future
|
||||||
|
|
Loading…
Reference in a new issue