htmltable2csv

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2018 License: MIT Imports: 6 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 {
	URL      string
	Selector string
	Data     [][]string
}

Scraper store the URL, 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