urllib3.exceptions.MaxRetryError: (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 449 Foreign Host Forbidden'))) proxies = { "http": "http://%(user)s:%(pwd)s@%(proxy)s/" % {"user": username, "pwd": password, "proxy": proxy_ip}, "https": "http://%(user)s:%(pwd)s@%(proxy)s/" % {"user": username, "pwd": password, "proxy": proxy_ip} }
出现这个问题我也上网查了一下,是https不能够加s 记得之前有个博主提到过,具体是那个忘记了。