How do I include my automatic proxy config file in HTTP libraries like urllib or requests.
pacfile = 'http://myintranet.com/proxies/ourproxies.pac'
proxy = urllib3.ProxyManager(????????????????)
I've created a pure-Python library called PyPAC which should do what you're looking for. It provides a subclass of requests.Session
that includes honours PACs and includes PAC auto-discovery.