I am trying to connect to websites using HTTP proxies. I have tried using the requests modules' way:
import requests
proxies = {'http': '1.0.0.1:808'}
a = requests.get('https://www.google.com', proxies=proxies)
print(a.text)
This is the example code in the requests module's documentation. The code will print out the source of Google completely ignoring anything in the dictionary. I can't see what I'm doing wrong.
I have scoured the internet looking how to check and use a HTTP proxy in Python3 and have had no luck.
Everything I find is in Python 2.
Any help would be appreciated. Thank you.