捕获和转换Web的工具

使用HTTP代理创建Web捕获

使用您自己的HTTP代理,您可以从世界任何地方进行任何类型的捕获,例如图像或PDF屏幕截图。 为此,您必须提供HTTP代理的地址,为简化起见,我们在下面做了一个向导。 只需在下面的表格中输入代理详细信息,然后按 产生 按钮以创建可在GrabzIt的API中使用的代理地址。 如果要从代理后面获取屏幕截图,则需要遵循 这些说明.

输入用户名(如果需要)
根据需要输入密码

使用代理地址

一旦在上面生成了代理地址,下面将针对我们当前支持的每种编程语言显示一个使用HTTP代理创建捕获的示例。

GrabzItClient grabzIt = new GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret");
ImageOptions options = new ImageOptions();
options.Proxy = "";

grabzIt.URLToImage("http://www.spacex.com", options);
grabzIt.Save("http://www.example.com/Home/Handler");
GrabzItClient grabzIt = new GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret");
ImageOptions options = new ImageOptions();
options.setProxy("");

grabzIt.URLToImage("http://www.spacex.com", options);
grabzIt.Save("http://www.example.com/handler");
<script src="https://cdn.jsdelivr.net/npm/@grabzit/js@3.3.7/grabzit.min.js"></script>
<script>
GrabzIt("Sign in to view your Application Key").ConvertURL("http://www.spacex.com", 
{"onfinish": function (id){
   alert(id);
}, 
"proxy":""}).Create();
</script>
var grabzit = require('grabzit');

var client = new grabzit("Sign in to view your Application Key", "Sign in to view your Application Secret");
var options = {"proxy":""};

client.url_to_image("http://www.spacex.com", options);
client.save("http://www.example.com/handler", function (error, id){
    if (error != null){
        throw error;
    }
});
$grabzIt = GrabzItClient->new("Sign in to view your Application Key", "Sign in to view your Application Secret");
$options = GrabzItImageOptions->new();
$options->proxy("");

$grabzIt->URLToImage("http://www.spacex.com", $options);
$grabzIt->Save("http://www.example.com/handler.pl");
$grabzIt = new \GrabzIt\GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret");
$options = new \GrabzIt\GrabzItImageOptions();
$options->setProxy("");

$grabzIt->URLToImage("http://www.spacex.com", $options);
$grabzIt->Save("http://www.example.com/handler.php");
grabzIt = GrabzItClient.GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret")
options = GrabzItImageOptions.GrabzItImageOptions()
options.proxy = ""

grabzIt.URLToImage("http://www.spacex.com", options)
grabzIt.Save("http://www.example.com/handler.py")
grabzIt = GrabzIt::Client.new("Sign in to view your Application Key", "Sign in to view your Application Secret")
options = GrabzIt::ImageOptions.new()
options.proxy = ""

grabzIt.url_to_image("http://www.spacex.com", options)
grabzItClient.save("http://www.example.com/handler/index")

使用GrabzIt的代理服务器

有时,网站会阻止我们的IP地址之一,特别是如果您要求捕获网站的许多内容时。 为了解决这个问题,您可以使用GrabzIt的代理服务器。 这将通过我们在其中创建捕获所在国家/地区的代理服务器银行之一调用目标网站。

为此,只需通过 grabzit:// 如果希望将国家/地区限制在特定位置,请设置为proxy参数并设置国家/地区参数,如下所示。

GrabzItClient grabzIt = new GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret");
ImageOptions options = new ImageOptions();
options.Proxy = "grabzit://";

grabzIt.URLToImage("http://www.spacex.com", options);
grabzIt.Save("http://www.example.com/Home/Handler");
GrabzItClient grabzIt = new GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret");
ImageOptions options = new ImageOptions();
options.setProxy("grabzit://");

grabzIt.URLToImage("http://www.spacex.com", options);
grabzIt.Save("http://www.example.com/handler");
<script src="https://cdn.jsdelivr.net/npm/@grabzit/js@3.3.7/grabzit.min.js"></script>
<script>
GrabzIt("Sign in to view your Application Key").ConvertURL("http://www.spacex.com", 
{"onfinish": function (id){
   alert(id);
}, 
"proxy":"grabzit://"}).Create();
</script>
var grabzit = require('grabzit');

var client = new grabzit("Sign in to view your Application Key", "Sign in to view your Application Secret");
var options = {"proxy":"grabzit://"};

client.url_to_image("http://www.spacex.com", options);
client.save("http://www.example.com/handler", function (error, id){
    if (error != null){
        throw error;
    }
});
$grabzIt = GrabzItClient->new("Sign in to view your Application Key", "Sign in to view your Application Secret");
$options = GrabzItImageOptions->new();
$options->proxy("grabzit://");

$grabzIt->URLToImage("http://www.spacex.com", $options);
$grabzIt->Save("http://www.example.com/handler.pl");
$grabzIt = new \GrabzIt\GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret");
$options = new \GrabzIt\GrabzItImageOptions();
$options->setProxy("grabzit://");

$grabzIt->URLToImage("http://www.spacex.com", $options);
$grabzIt->Save("http://www.example.com/handler.php");
grabzIt = GrabzItClient.GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret")
options = GrabzItImageOptions.GrabzItImageOptions()
options.proxy = "grabzit://"

grabzIt.URLToImage("http://www.spacex.com", options)
grabzIt.Save("http://www.example.com/handler.py")
grabzIt = GrabzIt::Client.new("Sign in to view your Application Key", "Sign in to view your Application Secret")
options = GrabzIt::ImageOptions.new()
options.proxy = "grabzit://"

grabzIt.url_to_image("http://www.spacex.com", options)
grabzItClient.save("http://www.example.com/handler/index")

重要的是要记住,使用代理将减慢创建捕获所需的时间 int产生额外的网络跃点。