package
0.4.0
Repository: https://github.com/branow/htmlscraper.git
Documentation: pkg.go.dev

# Functions

ExtractAttribute returns the value of the given attribute.
ExtractDeepText returns the text of all descendants' text nodes.
ExtractDeepText returns the text of all children's text nodes.
GetEqualMatch creates a Match function that compares the given value with the value of the extracting tag.
GetExtractorMap returns the default map to match extracting tags and extracting functions (or extractors).
GetPrefixMatch creates a Match function that checks whether the extracting tag value has the given prefix and returns a boolean result with the extracting tag value.
ValidateNotNil checks if the given o variable is nil or is a pointer that points to nil and returns [NillErr] in the true case.

# Constants

get a value of an attribute ("@href", "@src").
get a text of descendants' text nodes.
extract operation to get useful data from the node.
jQuery-like selector to find the node.
No description provided by the author
No description provided by the author
get a text of children's text nodes.
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Scraper is a struct that contains a method to scrape data from an HTML document ([goquery.Document]).
No description provided by the author

# Type aliases

Extractor is a function that processes the given node and returns the valuable data in string format.
Match wraps boolean logic of matching values of extracting tags with extracting function (or extractors).
No description provided by the author