htmltable2csv

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scraper

type Scraper struct {
	Source   string
	Selector string
	Data     [][]string
	Trim     bool
}

Scraper store the Source, Selector and collected Data

func (*Scraper) CSV

func (s *Scraper) CSV(w io.Writer) error

CSV write the Data to the given io Writer

func (*Scraper) Scrape

func (s *Scraper) Scrape() ([][]string, error)

Scrape download and parse the table data

func (*Scraper) WriteCSV

func (s *Scraper) WriteCSV(filename string) error

WriteCSV write the Data to the given filename

Jump to

Keyboard shortcuts

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