Last active
April 11, 2023 13:37
-
-
Save kwinkunks/50f11dac6ab7ff8c3e6c7b34536501a2 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:Each time you use
requests.get()
you will need to pass theproxies
dictionary in this way.Getting
SSLCertVerificationError
or similarIf you get some variant of
SSLError
,SSLCertVerificationError
,CERTIFICATE_VERIFY_FAILED
orcertificate verify failed: unable to get local issuer certificate
, then you need to tellrequests
where to find your certificates. On Linux, they are usually in/etc/ssl/certs
. For example, this sort of thing might work:On Windows you need to export your CA certs from your registry to a file and point
requests
to that.