Answer the question
In order to leave comments, you need to log in
How to implement proper proxy work in requests python?
I use requests to send http requests. The problem is this - the documentation for requests states that the proxy must be set in the following form:
proxies = {
'http': 'http://10.10.1.10:3128',
'https': 'http://10.10.1.10:1080',
}
requests.get('http://example.org', proxies=proxies)
requests.get('http://example.org', proxies={ 'https': 'http://10.10.1.10:1080' } )
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