Ferramentas para capturar e converter a Web

Use um proxy HTTP para criar capturas da 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 para escolher.

To use a proxy you must first provide its connection details. Just enter the proxy details in the wizard below and then press the Gerar 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 estas instruções.

Digite o nome de usuário, se necessário
Digite a senha, se necessário

Usando o endereço de proxy

Depois de gerar o endereço de proxy acima, um exemplo de uso de um proxy HTTP para criar uma captura será exibido para todas as linguagens de programação atualmente suportadas abaixo.

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")

Usando servidores proxy da GrabzIt

Às vezes, os sites bloqueiam um de nossos endereços IP, especialmente se você solicitar muitas capturas do site. Para contornar isso, você pode usar os servidores proxy do GrabzIt. Isso chamará o site de destino através de um de nosso banco de servidores proxy para o país em que a captura está sendo criada.

Para fazer isso basta passar grabzit:// para o parâmetro proxy e defina o parâmetro country se desejar restringir o país a um local específico, como mostrado abaixo.

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")

É importante lembrar que o uso de proxies diminuirá o tempo necessário para criar capturas, pois introduces lúpulos extras na rede.