import requests proxies = { "http": "http://10.10.10.10:8000", "https": "https://10.10.10.10:8000" } r = requests.get("http://toscrape.com", proxies=proxies)