lightswitch05/table-to-json

Is it possible to extract all tables in HTML string?

Closed this issue · 1 comments

I am used to the node.js "table-as-JSON" package, it lets me extract all tables that are in HTML string. This is very useful for parsing, and tables that have no ids. Is this functionality part of the table to json package?

example:

// Convert an HTML blob into an array of all the tables on the page
var tabletojson = require('tabletojson');
var tablesAsJson = tabletojson.convert(html);
var firstTableAsJson = tablesAsJson[0];
var secondTableAsJson = tablesAsJson[1];

link: https://www.npmjs.com/package/tableasjson

No, you must use this tool per table