Strumenti per acquisire e convertire il Web

Schermate specifiche della posizione

API di GrabzIt ed Strumento Screenshot online entrambi supportano screenshot specifici della posizione, ovvero screenshot presi da un particolare paese. La posizione geografica predefinita da cui viene preso uno screenshot è solitamente la posizione più veloce disponibile. Tuttavia, se desideri modificare la posizione da cui viene acquisito uno screenshot quando utilizzi una delle nostre API, modifica il parametro del paese in "SG" per Singapore, "UK" per il Regno Unito o "US" per gli Stati Uniti.

Gli Stati Uniti, il Regno Unito e Singapore sono stati scelti come posizioni dei server di acquisizione perché queste posizioni dividono il globo into tre parti quasi uguali, il che significa che dovrebbe essere possibile catturare rapidamente qualsiasi sito Web globale geo-targeting. Tieni inoltre presente che, come mostrato nella mappa, uno screenshot degli Stati Uniti verrà acquisito utilizzando i nostri server di acquisizione di New York, Chicago o Miami, mentre uno screenshot del Regno Unito verrà acquisito dal nostro data center di Londra.

Se desideri che gli screenshot vengano acquisiti da un Paese diverso da quelli attualmente disponibili, per favore contattare l'assistenza, se c'è abbastanza domanda per un nuovo paese potremmo aggiungerlo!

Di seguito è mostrato un esempio di come impostare il paese da cui verrà effettuata l'acquisizione, per ogni linguaggio di programmazione supportato da GrabzIt.

GrabzItClient grabzIt = new GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret");
ImageOptions options = new ImageOptions();
options.Country = Country.US;
grabzIt.URLToImage("http://www.spacex.com", options);
grabzIt.SaveTo("spacex.jpg");
GrabzItClient grabzIt = new GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret");
ImageOptions options = new ImageOptions();
options.setCountry(Country.UNITEDSTATES);
grabzIt.URLToImage("http://www.spacex.com", options);
grabzIt.SaveTo("spacex.jpg");
<script src="https://cdn.jsdelivr.net/npm/@grabzit/js@3.5.2/grabzit.min.js"></script>
<script>
GrabzIt("Sign in to view your Application Key").ConvertURL("http://www.spacex.com", {"country":"US"}).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 = {"country":"US"};
client.url_to_image("http://www.spacex.com", options);
client.save_to("spacex.jpg", 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->country("US");
$grabzIt->URLToImage("http://www.spacex.com", $options);
$grabzIt->SaveTo("spacex.jpg");
$grabzIt = new \GrabzIt\GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret");
$options = new \GrabzIt\GrabzItImageOptions();
$options->setCountry("US");
$grabzIt->URLToImage("http://www.spacex.com", $options);
$grabzIt->SaveTo("spacex.jpg");
grabzIt = GrabzItClient.GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret")
options = GrabzItImageOptions.GrabzItImageOptions()
options.country = "US"
grabzIt.URLToImage("http://www.spacex.com", options)
grabzIt.SaveTo("spacex.jpg")
https://api.grabz.it/services/convert?key=Sign in to view your Application Key&format=jpg&country=US&url=http%3A%2F%2Fwww.spacex.com
grabzIt = GrabzIt::Client.new("Sign in to view your Application Key", "Sign in to view your Application Secret")
options = GrabzIt::ImageOptions.new()
options.country = "US"
grabzIt.url_to_image("http://www.spacex.com", options)
grabzIt.save_to("spacex.jpg")