Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/paulvollmer/htmltable2csv

htmltable2csv is a tool to parse a html table and store the data as csv. It can be written to a file or print out to stdout
https://github.com/paulvollmer/htmltable2csv

csv data-mining html-table html-tables scraper

Last synced: 21 days ago
JSON representation

htmltable2csv is a tool to parse a html table and store the data as csv. It can be written to a file or print out to stdout

Awesome Lists containing this project

README

        




htmltable2csv



htmltable2csv is a tool to parse a html table and store the data as csv, written to a file or print to stdout.



CI
Software Release
Software License

---

## Installation
##### Using go get
```
go get -u github.com/paulvollmer/htmltable2csv
```

##### Using homebrew
```
brew install paulvollmer/tap/htmltable2csv
```

##### Manually
Download your preferred flavor from the [releases page](https://github.com/paulvollmer/htmltable2csv/releases) and install manually.

## Usage
```
Usage: htmltable2csv [flags]

Flags:
-csv string
The csv filename. if empty, print csv to stdout
-selector string
The table css selector
-source string
The filepath or website url
-start int
The row to begin data result
-stop int
The row to end data result
-trim
Trim the whitespace for each table column
-v Print the version and exit

Examples:
htmltable2csv \
-source 'https://www.w3schools.com/html/html_tables.asp' \
-selector '#customers > tbody > tr' \
-csv data.csv \
-start 0 \
-stop 3
```

## License
[MIT License](LICENSE)