Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/paulvollmer/htmltable2csv
- Owner: paulvollmer
- License: mit
- Created: 2018-09-17T09:21:22.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-09-01T18:28:50.000Z (about 1 year ago)
- Last Synced: 2024-10-04T23:41:20.880Z (about 1 month ago)
- Topics: csv, data-mining, html-table, html-tables, scraper
- Language: Go
- Homepage:
- Size: 66.4 KB
- Stars: 5
- Watchers: 3
- Forks: 3
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
htmltable2csv
htmltable2csv
is a tool to parse a html table and store the data as csv, written to afile
or print tostdout
.
---
## 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 exitExamples:
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)