Herramientas para capturar y convertir la web

URL to Rendered HTML API with GrabzItURL to Rendered HTML API

Use GrabzIt’s Rendered HTML API to execute a URL or HTML snippet in a browser instance and return the processed HTML to your code for further processing.

Do you need to get the result of a web page after JavaScript has been executed? Perhaps because you have written an app to scrape the web and need to return the rendered HTML that a browser will produce. Rather than just the raw HTML of a web page. Then this is the API for you!

However this API is also very new and is currently undergoing beta testing. So if you have any issues or suggestions for it please don’t hesitate to contáctenos. You can also try out this feature in our Herramienta de captura de pantalla allowing you to get rendered HTML without writing any code.

Try the demo below to see how our API converts any URL to rendered HTML Just enter the URL of a web page and click GrabzIt. Then once complete a HTML file containing the rendered HTML of that web page will be automatically downloaded.

Rendered HTML API

Like all of GrabzIt's API's the Rendered HTML API supports eight programming languages. Just select the required language from the options below to see a code snippet and instructions on how to implement it in your app.

The example code below shows how easy it is to use our API to render HTML using C#, although GrabzIt's ASP.NET library is compatible with any .NET language. To start creating PDF's just descargue la biblioteca ASP.NET, conseguir su clave y secreto y entonces usa la demo contenida dentro de. Entonces mira el Documentación API para ASP.NET para descubrir todas las formas en que puede usar la API de GrabzIt.

GrabzItClient grabzIt = new GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret");
grabzIt.URLToRenderedHTML("https://www.bbc.com/"); 
grabzIt.SaveTo("result.html");

You can of course customize the HTML rendering using the HTMLOptions clase in a similar way to the other conversion methods.

The example code below shows how easy it is to use our Rendered HTML Java Library. To start creating rendered HTML just descargar la biblioteca de Java, conseguir su clave y secreto y entonces usa la demo contenida dentro de. Entonces mira el Documentación API para Java para descubrir todas las formas en que puede usar la API de GrabzIt.

GrabzItClient grabzIt = new GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret");
grabzIt.URLToRenderedHTML("https://www.bbc.com/"); 
grabzIt.SaveTo("result.html");

You can of course customize the HTML rendering using the HTMLOptions clase in a similar way to the other conversion methods.

The example code below shows how easy it is to use our API to convert URL's to rendered HTML using JavaScript. To start creating rendered HTML download GrabzIt's JavaScript Library. Entonces consigue tu clave y secreto, agregar el dominio desea usar JavaScript y luego verifique Documentación API para JavaScript para descubrir todas las formas en que puede usar la API de GrabzIt.

<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("https://www.bbc.com/",
{"format": "html"}).Create();
</script>

You can of course customize the HTML rendering using the opciones property in a similar way to what is available for the other formats.

The example code below shows how easy it is to use our API to perform an URL to rendered HTML conversion using Node.js. To start creating PDF's just descargue el paquete Node.js, conseguir su clave y secreto y entonces usa la demo contenida dentro de. Entonces mira el Documentación API para Node.js para descubrir todas las formas en que puede usar la API de GrabzIt.

var grabzit = require('grabzit');

var client = new grabzit("Sign in to view your Application Key", "Sign in to view your Application Secret");
client.url_to_rendered_html("https://www.bbc.com/");
client.save_to("result.html", function (error, id){
    if (error != null){
        throw error;
    }
});

You can of course customize the HTML rendering using the opciones property in a similar way to the other conversion methods.

The example code below shows how easy it is to use our API to convert URL's to rendered HTML using Perl. To start creating rendered HTML just descargar la Biblioteca Perl, conseguir su clave y secreto y entonces usa la demo contenida dentro de. Entonces mira el Documentación API para Perl para descubrir todas las formas en que puede usar la API de GrabzIt.

#!/usr/bin/perl

use GrabzItClient;

$grabzIt = GrabzItClient->new("Sign in to view your Application Key", "Sign in to view your Application Secret");
$grabzIt->URLToRenderedHTML("https://www.bbc.com/");
$grabzIt->SaveTo("result.html");

You can of course customize the HTML rendering using the GrabzItHTMLOptions clase in a similar way to the other conversion methods.

The example code below shows how easy it is to use our API to convert URL's to rendered HTML using PHP. To start creating rendered HTML just descargar la biblioteca PHP, conseguir su clave y secreto y entonces usa la demo contenida dentro de. Entonces mira el Documentación API para PHP para descubrir todas las formas en que puede usar la API de GrabzIt.

include("GrabzItClient.php");

$grabzIt = new \GrabzIt\GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret");
$grabzIt->URLToRenderedHTML("https://www.bbc.com/"); 
$grabzIt->SaveTo("result.html");

You can of course customize the HTML rendering using the GrabzItHTMLOptions clase in a similar way to the other conversion methods.

The example code below shows how easy it is to use our API to convert URL's to rendered HTML using Python. To start creating rendered HTML just descargar la biblioteca de Python, conseguir su clave y secreto y entonces usa la demo contenida dentro de. Entonces mira el Documentación API para Python para descubrir todas las formas en que puede usar la API de GrabzIt.

from GrabzIt import GrabzItClient

grabzIt = GrabzItClient.GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret")
grabzIt.URLToRenderedHTML("https://www.bbc.com/") 
grabzIt.SaveTo("result.html") 

You can of course customize the HTML rendering using the GrabzItHTMLOptions clase in a similar way to the other conversion methods.

The example code below shows how easy it is to use our API to convert URL's to rendered HTML using Ruby. To start creating rendered HTML just descargar la gema de rubí, conseguir su clave y secreto y entonces usa la demo contenida dentro de. Entonces mira el Documentación API para Ruby para descubrir todas las formas en que puede usar la API de GrabzIt.

require 'grabzit'

grabzItClient = GrabzIt::Client.new("Sign in to view your Application Key", "Sign in to view your Application Secret")
grabzItClient.url_to_rendered_html("https://www.bbc.com/")	
grabzItClient.save_to("result.html")  	

You can of course customize the HTML rendering using the HTMLOptions clase in a similar way to the other conversion methods.