scrape

package
v0.0.0-...-0c2c550 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Comments

func Comments(doc *html.Node) []*html.Node

func FindNode

func FindNode(node *html.Node, matcher func(node *html.Node) bool) *html.Node

FindNode will return the first node that the matcher function accepts.

func FindNodes

func FindNodes(node *html.Node, matcher func(node *html.Node) (bool, bool)) (nodes []*html.Node)

FindNodes will gather all nodes that the matcher function accepts. The matcher function's second return value indicates whether to search the children of the current node.

func GetElementWithClass

func GetElementWithClass(node *html.Node, tagname atom.Atom, class string) *html.Node

GetElementWithClass returns the first element underneath and including `node` that has the given class value (as given in the HTML). The classes must be in the same order as those given.

func Submissions

func Submissions(doc *html.Node) []*html.Node

Types

This section is empty.

Jump to

Keyboard shortcuts

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