Skip to content

Commit

Permalink
Update workerctl implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
ppfeister committed Apr 10, 2024
1 parent 4cedcab commit 7c2c2ab
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ $ python3 sherlock --help
usage: sherlock [-h] [--version] [--verbose] [--folderoutput FOLDEROUTPUT]
[--output OUTPUT] [--tor] [--unique-tor] [--csv] [--xlsx]
[--site SITE_NAME] [--proxy PROXY_URL] [--json JSON_FILE]
[--timeout TIMEOUT] [--print-all] [--print-found] [--no-color]
[--browse] [--local] [--nsfw]
[--workers WORKERS] [--timeout TIMEOUT] [--print-all]
[--print-found] [--no-color] [--browse] [--local] [--nsfw]
USERNAMES [USERNAMES ...]

Sherlock: Find Usernames Across Social Networks (Version 0.14.3)
Expand Down Expand Up @@ -77,15 +77,14 @@ optional arguments:
Make requests over a proxy. e.g. socks5://127.0.0.1:1080
--json JSON_FILE, -j JSON_FILE
Load data from a JSON file or an online, valid, JSON file.
--workers WORKERS Set the maximum number of workers (Default: 20)
--timeout TIMEOUT Time (in seconds) to wait for response to requests (Default: 60)
--print-all Output sites where the username was not found.
--print-found Output sites where the username was found.
--no-color Don't color terminal output
--browse, -b Browse to all results on default browser.
--local, -l Force the use of the local data.json file.
--nsfw Include checking of NSFW sites from default list.
--max-workers MAX_WORKERS
Set the maximum number of workers for Sherlock (Default: 20)
```

To search for only one user:
Expand Down
17 changes: 8 additions & 9 deletions sherlock/sherlock.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,13 @@ def main():
default=None,
help="Load data from a JSON file or an online, valid, JSON file.",
)
parser.add_argument(
"--workers",
type=int,
default=20,
dest="workers",
help="Set the maximum number of workers for Sherlock (Default: 20)"
)
parser.add_argument(
"--timeout",
action="store",
Expand Down Expand Up @@ -642,14 +649,6 @@ def main():
help="Include checking of NSFW sites from default list.",
)

parser.add_argument(
"--max-workers",
type=int,
default=20,
dest="max_workers",
help="Set the maximum number of workers for Sherlock (Default: 20)"
)

args = parser.parse_args()

# If the user presses CTRL-C, exit gracefully without throwing errors
Expand Down Expand Up @@ -771,7 +770,7 @@ def main():
unique_tor=args.unique_tor,
proxy=args.proxy,
timeout=args.timeout,
max_workers=args.max_workers
max_workers=args.workers
)

if args.output:
Expand Down

0 comments on commit 7c2c2ab

Please sign in to comment.