crawler

package
v0.0.0-...-6e6c142 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ElementTraversal

func ElementTraversal(node *html.Node, crawler Crawler)

ElementTraversal pre-order traverse HTML document.

Found HTML ElementNode items passed to `crawler`.

func IsElementNode

func IsElementNode(node *html.Node) bool

IsElementNode helper for checking the given HTML node is an ElementNode.

func IsTextNode

func IsTextNode(node *html.Node) bool

IsTextNode helper for checking the given HTML node is a TextNode.

Types

type Crawler

type Crawler interface {
	Crawl(node *html.Node)
}

Jump to

Keyboard shortcuts

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