import requests proxies = {'http': 'https://80.14.219.107:3128', 'https': 'https://80.14.219.107:3128'} r = requests.get('https://httpbin.org/ip', proxies=proxies) print(r.text)