Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kwinkunks
Copy link
Author

A note about proxies

If you are in a corporate environment, you probably connect to the Internet through another computer called a 'proxy'. You will need the URL of this proxy; it might look like https://proxy.my-company.net:8080. Then use it in your Python environment like this:

proxies  = {'https': 'https://proxy.my-company.net:8080'}
r = requests.get(url, proxies=proxies)

Each time you use requests.get() you will need to pass the proxies dictionary in this way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment