【发布时间】:2019-08-25 02:22:25
【问题描述】:
如何在 Windows 上配置 tor 代理?
比如我想通过一个tor代理运行下面的python脚本:
import requests
proxies = {
'http':'socks5h://localhost:9050',
'https':'socks5h:/localhost:9050'
}
url = 'someWebsite.onion'
res = requests.get(url, proxies=proxies)
在 unix 系统上,您可以简单地在终端中运行 tor,但这似乎不适用于 Windows。
【问题讨论】:
标签: python python-3.x windows tor socks