-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added installation and usage notes to readme
- Loading branch information
1 parent
3470aec
commit 64ad6f1
Showing
1 changed file
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,33 @@ | ||
# htmltable2csv | ||
# htmltable2csv | ||
|
||
## Introduction | ||
`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`. | ||
|
||
## Installation | ||
##### Manually | ||
Download your preferred flavor from the [releases page](https://github.com/paulvollmer/htmltable2csv/releases) and install manually. | ||
|
||
##### Using go get | ||
``` | ||
go get -u github.com/paulvollmer/htmltable2csv | ||
``` | ||
|
||
## Usage | ||
``` | ||
Usage: htmltable2csv [flags] | ||
Flags: | ||
-csv string | ||
The csv filename. if empty, print csv to stdout | ||
-selector string | ||
The table css selector | ||
-url string | ||
The website url | ||
-v Print the version and exit | ||
Examples: | ||
htmltable2csv -url 'https://www.w3schools.com/html/html_tables.asp' -selector '#customers > tbody > tr' -csv data.csv | ||
``` | ||
|
||
## License | ||
[MIT license](LICENSE) |