在不安装TOR浏览器/捆绑软件的情况下在TOR网络中获取请求? [英] GET requests in TOR network without installing TOR browser/bundle?

查看:205
本文介绍了在不安装TOR浏览器/捆绑软件的情况下在TOR网络中获取请求?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想对TOR网络执行http/https GET请求.

I want to perform http/https GET requests to the TOR network.

我的一个问题是该项目需要可扩展,我正在设计的软件必须轻巧,因此不可能让所有用户都安装TOR软件包以与我的程序一起使用.

My one issue is that this project needs to be scaleable, the software I'm designing needs to be light so having all users installing the TOR bundle to use with my program isn't possible.

是否有某种方式可以在不使用浏览器的情况下在TOR网络上生成GET请求?例如,我可以将请求定向到TOR桥吗?

Is there someway to generate GET requests on the TOR network without having the browser? For example can I do direct requests to a TOR bridge?

推荐答案

是的,有可能. Tor浏览器仅在后台运行Tor守护程序,并通过它代理请求.您只需要自己为应用程序安装,配置和运行守护程序.

Yes, it's possible. Tor Browser just runs the Tor daemon in the background and proxies it's requests through it. You'll just want to install, configure, and run the daemon yourself for your application.

对于Windows 下载并安装Tor专家包.在Linux上,要么从源代码编译最新版本,要么安装它们的存储库之一到您的系统并通过软件包管理器安装(推荐).注意:您当前的发行版可能提供了Tor软件包,但是您不应该使用它,因为它们通常不是最新的,并且正在运行许多较旧的版本.请使用由Tor项目管理的存储库之一,因为这些版本是最新的.

For Windows download and install the Tor expert bundle. On Linux, either compile the latest version from source, or install one of their repositories to your system and install via the package manager (recommended). Note: Your current distro probably has Tor available as a package but you shouldn't use that because they are typically not kept up to date and are running much older versions. Use one of the repositories managed by the Tor project as those releases are kept up to date.

如果您想进行更改或自定义 SocksPort (您的应用程序将用于通过Tor代理请求和DNS查找的端口)和其他设置.

You'll then need to edit the torrc configuration file if you wish to make changes or customize the SocksPort (the port your application will use to proxy requests and DNS lookups through Tor) and other settings.

然后您可能想要参考手册并且由于您提到您正在使用Python,因此请考虑使用 Stem 通过其控制协议与Tor进行通信. Stem还具有一些用于启动Tor进程的功能.然后根据您在应用程序中使用的网络/HTTP库,查看它是否支持SOCKS5并将其配置为使用Tor的SOCKS端口进行通信.

You'll then probably want to refer to the manual and since you mentioned you're using Python, look into using Stem to communicate with Tor using its control protocol. Stem also has some functionality for launching Tor processes as well. Then depending on what networking/HTTP library you're using in your application, see if it supports SOCKS5 and configure it to use Tor's SOCKS port for communication.

这篇关于在不安装TOR浏览器/捆绑软件的情况下在TOR网络中获取请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆