Answer the question
In order to leave comments, you need to log in
Why is the server rejecting a connection request in onion sites by torrequests?
I downloaded the torrequests library, downloaded tor, set up something in stem. I tried to send requests to ipecho.net/plain over the tor network, in fact, each connection showed a different (not my ip-address), but then I tried to connect to the onion site hss3uro2hsxfogfq.onion , but the following error occurred:
"""raise ConnectionError(e , request=request)
requests.exceptions.ConnectionError: SOCKSHTTPConnectionPool(host='sblib3fk2gryb46d.onion', port=80): Max retries exceeded with url: / (Caused by NewConnectionError(': Failed to establish a new connection: [WinError 10061 ] The connection was not established because the destination computer refused the connection request'))"""
I decided to try to connect to another onion site, the same error, what's the matter?
The code:
from torrequest import TorRequest
with TorRequest(proxy_port=9050, ctrl_port=9051, password=None) as tr:
headers = {
"user-agent": "Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Firefox/31.0 "
}
resp = tr.get(' sblib3fk2gryb46d.onion ', headers = headers)
print(resp.text)
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