File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,9 @@ torrequest = "^0.1.0"
52
52
pandas = " >=1.0.0,<3.0.0"
53
53
openpyxl = " ^3.0.10"
54
54
55
+ [tool .poetry .extras ]
56
+ tor = [" torrequest" ]
57
+
55
58
[tool .poetry .group .dev .dependencies ]
56
59
jsonschema = " ^4.0.0"
57
60
Original file line number Diff line number Diff line change 10
10
import sys
11
11
12
12
try :
13
- from sherlock .__init__ import import_error_test_var # noqa: F401
13
+ from sherlock_project .__init__ import import_error_test_var # noqa: F401
14
14
except ImportError :
15
15
print ("Did you run Sherlock with `python3 sherlock/sherlock.py ...`?" )
16
16
print ("This is an outdated method. Please see https://sherlockproject.xyz/installation for up to date instructions." )
@@ -211,6 +211,18 @@ def sherlock(
211
211
query_notify .start (username )
212
212
# Create session based on request methodology
213
213
if tor or unique_tor :
214
+ try :
215
+ from torrequest import TorRequest # noqa: E402
216
+ except ImportError :
217
+ print ("Important!" )
218
+ print ("> --tor and --unique-tor are now DEPRECATED, and may be removed in a future release of Sherlock." )
219
+ print ("> If you've installed Sherlock via pip, you can include the optional dependency via `pip install 'sherlock-project[tor]'`." )
220
+ print ("> Other packages should refer to their documentation, or install it separately with `pip install torrequest`.\n " )
221
+ sys .exit (query_notify .finish ())
222
+
223
+ print ("Important!" )
224
+ print ("> --tor and --unique-tor are now DEPRECATED, and may be removed in a future release of Sherlock." )
225
+
214
226
# Requests using Tor obfuscation
215
227
try :
216
228
underlying_request = TorRequest ()
You can’t perform that action at this time.
0 commit comments