Skip to content

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

License

Notifications You must be signed in to change notification settings

paulvollmer/htmltable2csv

Repository files navigation

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 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

About

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

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Contributors 4

  •  
  •  
  •  
  •