GrabzIt
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 and return it to you in a format that is easily readable.

To achieve this GrabzIt provides multiple methods of converting HTML Tables into CSV or Excel documents using either our API or Online Screenshot Tool. It allows a particular table to be extracted or when using the Excel format a new sheet can be created for each HTML table found.

Try the example below to see how the API converts HTML tables into CSV's. Just enter the URL of a web page that contains a HTML table and click GrabzIt, then once complete a CSV file that represents the HTML 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.

Warning At least a Entry Package is required to use the HTML table to CSV or Excel document converter. Try it for free with a 7 day free trial. Then from $5.99 a month, unless cancelled.Start 7 Day Free Trial

This code snippet indicates how straightforward it is to convert a HTML Table into a CSV or Excel document using ASP.NET. To start converting HTML tables just download the ASP.NET Library and then get your Application 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");
grabzIt.URLToTable("http://www.example.com/page-with-table.html"); 
grabzIt.SaveTo("tables/result.csv");

This code snippet indicates how straightforward it is to convert a HTML Table into a CSV or Excel document using Java. To start converting HTML tables just download the Java Library and then get your Application 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");
grabzIt.URLToTable("http://www.example.com/page-with-table.html"); 
grabzIt.SaveTo("tables/result.csv");

This code snippet indicates how straightforward it is to convert a HTML Table into a CSV or Excel document using JavaScript. To start converting HTML tables download GrabzIt's JavaScript Library. Then get your Application 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="grabzit.min.js"></script>
<script>
GrabzIt("Sign in to view your Application Key").ConvertURL("http://www.example.com/page-with-table.html", 
{"format":"csv"}).Create();
</script>

This code snippet indicates how straightforward it is to convert a HTML Table into a CSV or Excel document using Node.js. To start converting HTML tables just download the Node.js Package and then get your Application 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");
client.url_to_table("http://www.example.com/page-with-table.html");
client.save_to("tables/result.csv");

This code snippet indicates how straightforward it is to convert a HTML Table into a CSV or Excel document using Perl. To start converting HTML tables just download the Perl Library and then get your Application 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");
$grabzIt->URLToTable("http://www.example.com/page-with-table.html");
$grabzIt->SaveTo("tables/result.csv");

This code snippet indicates how straightforward it is to convert a HTML Table into a CSV or Excel document using PHP. To start converting HTML tables just download the PHP Library and then get your Application 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.class.php");

$grabzIt = new GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret");
$grabzIt->URLToTable("http://www.example.com/page-with-table.html"); 
$grabzIt->SaveTo("tables/result.csv");

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

import GrabzItClient

grabzIt = GrabzItClient.GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret")
grabzIt.URLToTable("http://www.example.com/page-with-table.html") 
grabzIt.SaveTo("tables/result.csv") 

This code snippet indicates how straightforward it is to convert a HTML Table into a CSV or Excel document using Ruby. To start converting HTML tables just download the Ruby Gem and then get your Application 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")
grabzItClient.url_to_table("http://www.example.com/page-with-table.html")	
grabzItClient.save_to("tables/result.csv")