Reputation: 1
Proxies Requests is using my own ip and when I'm using https I'm getting error:
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
I'm really trying to solve it and didn't found a working solution.
Upvotes: -2
Views: 137
Reputation: 2310
This is a code snippet that should work in your case.
import requests
proxies = {
'http': 'http://190.8.46.90:6969',
'https': 'http://190.8.46.90:6969',
}
s = requests.Session()
s.proxies.update(proxies)
s.get('https://api.myip.com')
You should also check for a firewall issue, the main cause of a connection timeout.
Upvotes: 0