Chadrick Blog

apply proxy settings to python requests

you can apply proxy settings to python requests like this:

import requests

proxy\_dict={
    "http": "http://1.1.1.1:8080",
    "https": "https://1.1.1.1:8080"
}

resp = requests.get(some\_url, proxies=proxy\_dict)