【问题标题】:Using TOR with python on windows - Cannot find installer在 Windows 上使用 TOR 和 python - 找不到安装程序
【发布时间】:2017-11-02 20:26:27
【问题描述】:

我正在尝试学习如何将 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?

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

【问题讨论】:

    标签: python windows python-3.x tor stem


    【解决方案1】:

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

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

    See here

    或者,一旦你启动它就只通过 Tor 代理?

    【讨论】:

    • 你指的是tor浏览器目录下的tor.exe等吗?
    • 是的.... Tor 浏览器是一个包装器,它启动 firefox 和 tor.exe,然后设置代理设置以便您可以连接。
    猜你喜欢
    • 1970-01-01
    • 2014-08-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-03-15
    • 1970-01-01
    相关资源
    最近更新 更多