python 3.5请求无论如何获得.onion网站?

时间:2017-02-03 04:15:34

标签: python http proxy python-requests tor

如何使用请求连接到.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',))

0 个答案:

没有答案