q
Size: a a a
q
q
s
Т
q
Т
q
Т
q
Т
q
q
q
Т
class ProxyType(Enum):
SOCKS4 = "socks4"
SOCKS5 = "socks5"
HTTP = "http"
HTTPS = "https"
def is_http(self):
return self.value in ["http", "https"]
def __str__(self):
return self.name.lower()
Т
q
Т
q
q
if proxy.protocol == ProxyType.HTTPS:
proxy_type = ProxyType.HTTPS
elif proxy.protocol == ProxyType.HTTP:
proxy_type = ProxyType.HTTP
elif proxy.protocol == ProxyType.SOCKS5:
proxy_type = ProxyType.SOCKS5
q