Closed tnt2k closed 1 year ago
def proxy(self, proxy: str = None): """ :param proxy: scheme://host:port => https://example.com:9000 """ supported_schemes = ["http", "https", "socks4", "socks5"] if proxy: scheme = proxy.split("://") check_cmd(scheme, supported_schemes) if "@" in proxy: raise ValueError("Proxies specified in options don't allow authentification") self.add_argument('--proxy-server=' + proxy)
The error may need to be corrected:
def proxy(self, proxy: str = None): """ :param proxy: scheme://host:port => https://example.com:9000 """ supported_schemes = ["http", "https", "socks4", "socks5"] if proxy: scheme = proxy.split("://")[0] check_cmd(scheme, supported_schemes) if "@" in proxy: raise ValueError("Proxies specified in options don't allow authentification") self.add_argument('--proxy-server=' + proxy)
or
def proxy(self, proxy: str = None): """ :param proxy: scheme://host:port => https://example.com:9000 """ supported_schemes = ["http", "https", "socks4", "socks5"] if proxy: scheme = proxy.split("://") check_cmd(scheme[0], supported_schemes) if "@" in proxy: raise ValueError("Proxies specified in options don't allow authentification") self.add_argument('--proxy-server=' + proxy)
Uhhh my bad:) I'll correct it in the next version. For now, just add a command-line proxy using --proxy-server=' + proxy or using auth_proxy, as auth is optional
--proxy-server=' + proxy
auth_proxy
The error may need to be corrected:
or