Skip to content

Incredibly fast crawler designed for OSINT.

lower case proxy_type

oXisf17bb53a268d
diff --git a/core/utils.py b/core/utils.py
index e4cc7e3..c6b5aa3 100644
--- a/core/utils.py
+++ b/core/utils.py
@@ -159,7 +159,7 @@ def is_proxy_list(v, proxies):
return False
-def ProxyType(v):
+def proxy_type(v):
""" Match IP:PORT or DOMAIN:PORT in a losse manner """
proxies = []
if re.match(r"((http|socks5):\/\/.)?(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}):(\d{1,5})", v):
diff --git a/photon.py b/photon.py
index 7eb5e5d..455999e 100644
--- a/photon.py
+++ b/photon.py
@@ -37,7 +37,7 @@ from core.prompt import prompt
from core.requester import requester
from core.updater import updater
from core.utils import (luhn,
- ProxyType,
+ proxy_type,
is_good_proxy,
top_level,
extract_headers,
@@ -79,7 +79,7 @@ parser.add_argument('--exclude', help='exclude URLs matching this regex',
parser.add_argument('--timeout', help='http request timeout', dest='timeout',
type=float)
parser.add_argument('-p', '--proxy', help='Proxy server IP:PORT or DOMAIN:PORT', dest='proxies',
- type=ProxyType)
+ type=proxy_type)
# Switches
parser.add_argument('--clone', help='clone the website locally', dest='clone',