Open zolfariot opened 3 years ago
This is due to author not setting the proper proxy type: https://github.com/erdiaker/torrequest/blob/8c1b5d0b90bbc5f302cc624a8ae61545542b99f4/torrequest.py#L29 socks5 should be socks5h.
Here is a temporary work around:
import torrequest
tr = torrequest.TorRequest()
tr.session.proxies.update({
'https': 'socks5h://localhost:9050', #assuming your local proxy port is 9050
})
tr.session.get('https://ipecho.net/plain').text
Environment
OS: linux x86_64 Python: 3.9.4 OpenSSL: 1.1.1k
Python deps:
Behavior
With plain (not https) connections:
With ssl connections