I'm trying to open a website (I am behind a corporate proxy) using urllib.request.urlopen() but I am getting the error:
urllib.error.HTTPError: HTTP Error 407: Proxy Authentication Required
I can find the proxy in urllib.request.getproxies(), but how do I specify a username and password to use for it? I couldn't find the solution in the official docs.
ProxyHandler
now lives inurllib.request.ProxyHandler
– Dichroic