nltk.getproxies()

nltk.getproxies()[source]

Return a dictionary of scheme -> proxy server URL mappings.

Scan the environment for variables named <scheme>_proxy; this seems to be the standard convention. In order to prefer lowercase variables, we process the environment in two passes, first matches any and second matches only lower case proxies.

If you need a different way, you can pass a proxies dictionary to the [Fancy]URLopener constructor.