1

我正在尝试学习如何将 Python 与 TOR 一起使用。但是,我找不到任何适用于 Windows 的 TOR 客户端(相当于 linux 上的“apt-get install tor”,或 android 上的 ORbot)。

我找到的只是我已经拥有并使用的 TOR 浏览器。我正在使用带有 Python 的 stem 来连接到 TOR,但是由于我没有安装任何东西,它失败了:

Traceback (most recent call last):
  File "C:/Users/8bitb/Desktop/Python Stuff/tor.py", line 19, in <module>
    init_msg_handler=print_bootstrap_lines,
  File "C:\Python36\lib\site-packages\stem\process.py", line 273, in launch_tor_with_config
    return launch_tor(tor_cmd, args, torrc_path, completion_percent, init_msg_handler, timeout, take_ownership)
  File "C:\Python36\lib\site-packages\stem\process.py", line 86, in launch_tor
    raise OSError("'%s' isn't available on your system. Maybe it's not in your PATH?" % tor_cmd)
OSError: 'tor' isn't available on your system. Maybe it's not in your PATH?

我在任何地方都找不到简单的安装。我希望我遗漏了一些明显的东西。请有人纠正我的愚蠢。

4

1 回答 1

2

只需像往常一样下载 Torbrowser,它内置了 Tor 网络。如果你真的想要配置选项,你可以获得专家包。

然后,您需要将 tor 命令行可执行文件(您用来安装 torbrowser 的任何目录)添加到您的 Windows 路径中,这将允许您调用 tor?

看这里

或者,一旦您启动它,只需通过 tor 代理?

于 2017-11-02T20:54:24.567 回答