html

package
v0.0.0-...-ed9fe1d Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2018 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTMLScraper

type HTMLScraper func(*goquery.Document, *Head) (interface{}, error)

HTMLScraper is a function wrapper for Scraper interface using goquery.

func (HTMLScraper) Scrape

func (f HTMLScraper) Scrape(r io.Reader) (interface{}, error)

Scrape implements Scraper#Scrape

type Head struct {
	Title string     `json:"title"`
	Meta  url.Values `json:"meta"`
}

Jump to

Keyboard shortcuts

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