Mr.*_*un. 5 python tor python-3.x system-paths
我正在尝试将.onion网站的内容转换为python,一些研究表明该词干为' stem ',而当我运行此教程脚本时,或更具体地说,当我尝试使用stem.process.launch_tor_with_config时,我得到了这个错误:
“ tor”在您的系统上不可用。也许它不在您的路径中?
我应该安装某种tor程序,我得到了tor浏览器捆绑包,并将/ Tor库(带有tor.exe)放到了自己的路径中,但这没有帮助...显然我缺少了一些东西基本,请指教。
非常感谢...
小智 5
我在 Mac 上也遇到了同样的问题。尝试在 tor_cmd 参数中准确指定 tor 文件所在的位置:
tor_process = stem.process.launch_tor_with_config(
tor_cmd = '/Applications/TorBrowser.app/Tor/tor.real',
config = { SocksPort': str(SOCKS_PORT),
'ExitNodes': '{ru}',},
init_msg_handler = print_bootstrap_lines,
)
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4213 次 |
| 最近记录: |