如何使用请求连接到.onion网站? 像:
import requests
r = requests.get("http://twq6fdfu4ht3qin5.onion")
import requests
proxies = {
'http': 'socks5://localhost:9050',
'https': 'socks5://localhost:9050'
}
url = 'http://httpbin.org/ip'
r = requests.get(url, proxies=proxies)
print(r.text)
错误: 我得到了什么
Failed to establish a new connection: [WinError 10061] No connection could be made be
cause the target machine actively refused it',))