Incredibly fast crawler designed for OSINT.
remove python2 support for is_good_proxy
oXis14b618cc13ea
diff --git a/core/utils.py b/core/utils.pyindex 0354e7f..1f2d4fb 100644--- a/core/utils.py+++ b/core/utils.py@@ -7,13 +7,10 @@ import tldfrom core.colors import infofrom core.config import VERBOSE, BAD_TYPES-try:- from urllib.parse import urlparse- from urllib.request import ProxyHandler, build_opener, install_opener, Request, urlopen- import urllib.error-except ImportError:- from urlparse import urlparse- from urllib2 import ProxyHandler, build_opener, install_opener, Request, urlopen+from urllib.parse import urlparse+from urllib.request import ProxyHandler, build_opener, install_opener, Request, urlopen+import urllib.error+def regxy(pattern, response, supress_regex, custom):@@ -192,7 +189,7 @@ def is_good_proxy(pip):install_opener(opener)# change the URL to test herereq = Request('http://www.example.com')- sock = urlopen(req, timeout=2)+ sock = urlopen(req, timeout=3)except urllib.error.HTTPError as e:return Falseexcept Exception as detail: