parser

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLinksFromHtmlNode

func GetLinksFromHtmlNode(node *html.Node) []string

GetLinksFromHtmlNode is a function that takes an *html.Node as input and returns a slice of strings representing the URLs of all the links on the webpage.

func GetTextFromHtmlNode

func GetTextFromHtmlNode(node *html.Node) []string

GetLinksFromHtmlNode is a function that takes an *html.Node as input and returns a slice of strings representing the text on the webpage.

Types

type Parser

type Parser interface {
	GetLinksFromHtmlNode(node *html.Node) []string
	GetTextFromHtmlNode(node *html.Node) []string
}

Jump to

Keyboard shortcuts

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