htmlparser

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2018 License: MIT Imports: 6 Imported by: 0

README

htmlparser.Parser

Parses actual HTML and returns the links found

Documentation

Overview

Package htmlparser defines a parser.Interface that parses HTML and returns the urls from anchor href attributes

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

type Parser struct {
	Include func(*url.URL) bool
}

Parser is a parser.Interface that parses HTML and returns the urls from anchor href attributes

func (*Parser) Parse

func (p *Parser) Parse(ctx context.Context, urlPage string, body io.Reader) (urls []string, errs []error)

Parse parses the document and returns the urls and parse errors

Jump to

Keyboard shortcuts

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