Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 5 additions & 13 deletions sherlock_project/sherlock.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@
import sys

try:
from sherlock_project.__init__ import import_error_test_var # noqa: F401
from sherlock_project.__init__ import import_error_test_var # noqa: F401
except ImportError:
print("Did you run Sherlock with `python3 sherlock/sherlock.py ...`?")
print("This is an outdated method. Please see https://sherlockproject.xyz/installation for up to date instructions.")
print(
"This is an outdated method. Please see https://sherlockproject.xyz/installation for up to date instructions."
)
sys.exit(1)

import csv
Expand Down Expand Up @@ -243,7 +245,7 @@ def sherlock(
headers.update(net_info["headers"])

# URL of user on site (if it exists)
url = interpolate_string(net_info["url"], username.replace(' ', '%20'))
url = interpolate_string(net_info["url"], username.replace(" ", "%20"))

# Don't make request if username is invalid for the site
regex_check = net_info.get("regexCheck")
Expand Down Expand Up @@ -675,16 +677,6 @@ def main():
help="Include checking of NSFW sites from default list.",
)

# TODO deprecated in favor of --txt, retained for workflow compatibility, to be removed
# in future release
parser.add_argument(
"--no-txt",
action="store_true",
dest="no_txt",
default=False,
help="Disable creation of a txt file - WILL BE DEPRECATED",
)

parser.add_argument(
"--txt",
action="store_true",
Expand Down