Answer the question
In order to leave comments, you need to log in
Why don't proxies work in python requests? Or work?
s = requests.Session()
s.headers['Accept']= 'application/json'
proxies = {
'http':' http://login:[email protected]:port/ ',
}
res = s.get( ' https://ya.ru ', proxies=proxies)
print(res)
I tried without a proxy, with valid proxies, and deliberately made a mistake in the host and pass proxies.
Always the same result code 200.
Do they even work? Or how to prescribe in the code so that they work?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question