捕獲和轉換Web的工具

使用HTTP代理創建Web捕獲

Using your own HTTP proxy you can take any type of capture, such as a image or PDF screenshot, from anywhere in the world. If you don't have a proxy server already we recommend using Smartproxy as they have more than 195 locations 選擇。

To use a proxy you must first provide its connection details. Just enter the proxy details in the wizard below and then press the 產生 button to create a proxy address that can be used in GrabzIt's API's. If instead you want to take captures from a behind a local proxy then you need to follow 這些說明.

根據需要輸入用戶名
根據需要輸入密碼

使用代理地址

一旦在上面生成了代理地址,下面將針對我們當前支持的每種編程語言顯示一個使用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.4.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.4.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產生額外的網絡躍點。