Answer the question
In order to leave comments, you need to log in
Why is my IP address determined when requesting through a proxy?
import requests
proxies = {'http': "socks5://1.0.200.161:8080"}
r = requests.get('https://ifconfig.co/ip', proxies=proxies)
print(r.text)
Answer the question
In order to leave comments, you need to log in
Because proxies
you have the http key in the dictionary, and you are making a request to http s .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question