requests uses specific environment variables automatically for proxy detection.
HTTP_PROXY will define the proxy URL to use for HTTP connectionsHTTPS_PROXY will define the proxy URL to use for HTTPS connectionsOnce these environment variables are set, the Python code does not need to pass anything to the proxies parameter.
requests.get('http://example.com')