Tools to Capture and Convert the Web

Convert HTML Tables to CSV with GrabzIt Table to CSV

Often content is available on the web in a tabular format that is not easily extractable. This could be anything from stock prices to a television channel listing. GrabzIt's HTML Table to CSV service can extract this information. Then return it to you in a format that is easily readable.

To achieve this GrabzIt provides the ability to convert HTML to CSV, JSON or Excel files. Using either our API or Online Screenshot Tool. Additionally multiple tables can be extracted at once when using Microsoft Excel or JSON formats. With a new Excel sheet or object being created for each HTML table found.

Try the example below to see how the API converts HTML tables to Excel online. As well as JSON and CSV files. Just enter the URL of a web page that contains an HTML table and click GrabzIt. Then once complete a file that represents the table will be automatically downloaded.

HTML Table API

GrabzIt's HTML Table API supports multiple programming languages. Just select the required language from the options below to see a code snippet and instructions on how to get started.

This code snippet indicates how straightforward it is to convert a HTML Table into a document using ASP.NET. To start converting HTML tables just download the ASP.NET Library and then get your key and secret. Finally check out the API documentation for ASP.NET to find out all the ways you can use GrabzIt's API.

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

TableOptions options = new TableOptions();
options.Format = TableFormat.;

grabzIt.URLToTable("http://www.example.com/page-with-table.html", options); 
grabzIt.SaveTo("tables/result.");

This code snippet indicates how straightforward it is to convert a HTML Table into a document using Java. To start converting HTML tables just download the Java Library and then get your key and secret. Finally check out the API documentation for Java to find out all the ways you can use GrabzIt's API.

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

TableOptions options = new TableOptions();
options.setFormat(TableFormat.);

grabzIt.URLToTable("http://www.example.com/page-with-table.html", options); 
grabzIt.SaveTo("tables/result.");

This code snippet indicates how straightforward it is to convert a HTML Table into a document using JavaScript. To start converting HTML tables download GrabzIt's JavaScript Library. Then get your key and secret, add the domain you want to use the JavaScript on and Finally check out the API documentation for JavaScript to find out all the ways you can use GrabzIt's API.

<script src="https://cdn.jsdelivr.net/npm/@grabzit/js@/grabzit.min.js"></script>
<script>
GrabzIt("Sign in to view your Application Key").ConvertURL("http://www.example.com/page-with-table.html", 
{"format":""}).Create();
</script>

This code snippet indicates how straightforward it is to convert a HTML Table into a document using Node.js. To start converting HTML tables just download the Node.js Package and then get your key and secret. Finally check out the API documentation for Node.js to find out all the ways you can use GrabzIt's API.

var grabzit = require('grabzit');

var client = new grabzit("Sign in to view your Application Key", "Sign in to view your Application Secret");

var options = {"format",""};

client.url_to_table("http://www.example.com/page-with-table.html", options);
client.save_to("tables/result.", function (error, id){
    if (error != null){
        throw error;
    }
});

This code snippet indicates how straightforward it is to convert a HTML Table into a document using Perl. To start converting HTML tables just download the Perl Library and then get your key and secret. Finally check out the API documentation for Perl to find out all the ways you can use GrabzIt's API.

#!/usr/bin/perl

use GrabzItClient;

$grabzIt = GrabzItClient->new("Sign in to view your Application Key", "Sign in to view your Application Secret");

$options = GrabzItTableOptions->new();
$options->format("");

$grabzIt->URLToTable("http://www.example.com/page-with-table.html", $options);
$grabzIt->SaveTo("tables/result.");

This code snippet indicates how straightforward it is to convert a HTML Table into a document using PHP. To start converting HTML tables just download the PHP Library and then get your key and secret. Finally check out the API documentation for PHP to find out all the ways you can use GrabzIt's API.

include("GrabzItClient.php");

$grabzIt = new \GrabzIt\GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret");

$options = new \GrabzIt\GrabzItTableOptions();
$options->setFormat("");

$grabzIt->URLToTable("http://www.example.com/page-with-table.html", $options); 
$grabzIt->SaveTo("tables/result.");

This code snippet indicates how straightforward it is to convert a HTML Table into a document using Python. To start converting HTML tables just download the Python Library and then get your key and secret. Finally check out the API documentation for Python to find out all the ways you can use GrabzIt's API.

from GrabzIt import GrabzItClient

grabzIt = GrabzItClient.GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret")

options = GrabzItTableOptions.GrabzItTableOptions()
options.format = ""

grabzIt.URLToTable("http://www.example.com/page-with-table.html", options) 
grabzIt.SaveTo("tables/result.") 

This code snippet indicates how straightforward it is to convert a HTML Table into a document using our REST API. Also check out the API documentation for the REST API for more ways to customize your table extractions.

https://api.grabz.it/services/convert?key=Sign in to view your Application Key&format=&url=http%3A%2F%2Fwww.example.com%2Fpage-with-table.html

This code snippet indicates how straightforward it is to convert a HTML Table into a document using Ruby. To start converting HTML tables just download the Ruby Gem and then get your key and secret. Finally check out the API documentation for Ruby to find out all the ways you can use GrabzIt's API.

require 'grabzit'

grabzItClient = GrabzIt::Client.new("Sign in to view your Application Key", "Sign in to view your Application Secret")

options = GrabzIt::TableOptions.new()
options.format = ""

grabzItClient.url_to_table("http://www.example.com/page-with-table.html", options)	
grabzItClient.save_to("tables/result.")