html2csv

package module
v0.0.0-...-0ed0909 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2024 License: CC0-1.0 Imports: 6 Imported by: 0

README

html2csv

html2csv is a command-line tool that converts HTML tables into CSV format.

Still work in progress.

Usage

$ cat testdata/simple.html
<table>
  <thead>
    <tr>
      <td>name</td>
      <td>price</td>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>apple</td>
      <td>100</td>
    </tr>
    <tr>
      <td>banana</td>
      <td>200</td>
    </tr>
  </tbody>
</table>
$ html2csv < testdata/simple.html
name,price
apple,100
banana,200

Installation

go install github.com/vzvu3k6k/html2csv@latest

Development

go test

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoTableFound = errors.New("no table found")

Functions

func Run

func Run() error

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL