|
|
|
@ -19,6 +19,17 @@ from time import monotonic
|
|
|
|
|
|
|
|
|
|
import requests
|
|
|
|
|
|
|
|
|
|
# Removing __version__ here will trigger update message for users
|
|
|
|
|
# Do not remove until ready to trigger that message
|
|
|
|
|
__version__ = "0.14.4"
|
|
|
|
|
del __version__
|
|
|
|
|
|
|
|
|
|
from .__init__ import (
|
|
|
|
|
__shortname__,
|
|
|
|
|
__longname__,
|
|
|
|
|
__version__
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
from requests_futures.sessions import FuturesSession
|
|
|
|
|
from torrequest import TorRequest
|
|
|
|
|
from sherlock.result import QueryStatus
|
|
|
|
@ -28,9 +39,6 @@ from sherlock.sites import SitesInformation
|
|
|
|
|
from colorama import init
|
|
|
|
|
from argparse import ArgumentTypeError
|
|
|
|
|
|
|
|
|
|
module_name = "Sherlock: Find Usernames Across Social Networks"
|
|
|
|
|
__version__ = "0.14.4"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class SherlockFuturesSession(FuturesSession):
|
|
|
|
|
def request(self, method, url, hooks=None, *args, **kwargs):
|
|
|
|
@ -510,14 +518,14 @@ def handler(signal_received, frame):
|
|
|
|
|
|
|
|
|
|
def main():
|
|
|
|
|
version_string = (
|
|
|
|
|
f"Sherlock {__version__}\n"
|
|
|
|
|
f"{__shortname__} {__version__}\n"
|
|
|
|
|
+ f"Requests {requests.__version__}\n"
|
|
|
|
|
+ f"Python {platform.python_version()}"
|
|
|
|
|
+ f"Python {platform.python_version()}"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
parser = ArgumentParser(
|
|
|
|
|
formatter_class=RawDescriptionHelpFormatter,
|
|
|
|
|
description=f"{module_name} (Version {__version__})",
|
|
|
|
|
description=f"{__longname__} (Version {__version__})",
|
|
|
|
|
)
|
|
|
|
|
parser.add_argument(
|
|
|
|
|
"--version",
|
|
|
|
|