page

package
v1.23.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Page

type Page struct {
	HTML   string
	SHA256 string
	Soup   soup.Root
	Text   string
}

Page contains information on the HTML page.

func New

func New(html string) (*Page, error)

New instantiates a new Page struct.

func (*Page) GetEntities

func (p *Page) GetEntities(entityType string) []soup.Root

GetEntities returns any HTML entity of the specified type.

func (*Page) GetInputs

func (p *Page) GetInputs(inputType string) []soup.Root

GetInputs returns any form input.

func (*Page) GetTitle

func (p *Page) GetTitle() string

GetTitle returns the content of the <title> tag from the HTML page.

Jump to

Keyboard shortcuts

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