scraper

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureParentLevel

func EnsureParentLevel(root *goquery.Selection, elements *goquery.Selection, level int) (ok bool)

func ScrapeEnum

func ScrapeEnum(abbr string, page string) (map[string]string, error)

func ValidEnum

func ValidEnum(name string) bool

func ValidModel

func ValidModel(name string) bool

Types

type Attribute

type Attribute struct {
	Name     string
	Tag      string
	Required bool
	Type     string
	MinChars int
	MaxChars int
}

func NewAttribute

func NewAttribute(name, attrString string) (*Attribute, error)

func ScrapeAttributes

func ScrapeAttributes(header string, page string) ([]*Attribute, error)

func ScrapeEndpointParameters

func ScrapeEndpointParameters(header string, page string) ([]*Attribute, error)

func (*Attribute) String

func (a *Attribute) String() string

Jump to

Keyboard shortcuts

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