Skip to content

magse/htmltdcnt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

htmltdcnt

A simple CLI tool for extracting data from regularised HTML tables.

htmltdcnt comes from a need of scanning on-line HTML tables of product data and tabulated material properties.

The working principle is very simple, htmltdcnt traverse the raw HTML code of a file and each time it passes a closing HTML tag (</td>) the currently stored content of a temporary textual buffer is printed out. Also, each time an end of row tag (</tr>) is passed a new line is printed out. Every identified table cell and row is counted and an optional index is printed along the output as well. This index can be used for selecting just parts of a table using command line arguments.

The traversed HTML table need to be quite well-formed and regular in terms of shape. All rows need (almost) to have the same number of columns.

The code is very rudimentary and does not handle all possible erroneous states in a good way so mind your use carefully. Comments and improvement suggestions are most welcome.

htmltdcnt have been tested and developed using some well known on-line pages like mozilla table basics, w3schools tables and w3schools CSS tables.

Other similair tools include:

Enjoy table data!

About

A simple CLI tool for extracting data from regularised HTML tables

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors