package
0.1.2
Repository: https://github.com/playerr9/golibext.git
Documentation: pkg.go.dev

# Functions

CEWithSearch creates a NodeListParser from the given parameters.
CreateExtractor creates a NodeListParser from the given parameters.
FilterDataNode returns an FilterErrFunc that checks if the node has the specified data.
FilterTextNode returns an FilterErrFunc that checks if the node is a text node.
FilterValidNodes filters the valid nodes from a list.
GenericTreeExtraction creates a GTEFunc from the given parameters.
GetDirectChildren returns a slice of the direct children of the provided node.
InitializeContext initializes a new context.
NewAttrPair constructs a new AttrPair instance using the provided parameters.
NewErrNoDataNodeFound creates a new ErrNoDataNodeFound error.
NewErrNoNodesFound creates a new ErrNoNodesFound error.
NewErrNoTextNodeFound creates a new ErrNoTextNodeFound error.
NewHtmlTree constructs a tree from an HTML node.
NewSearchCriteria constructs a new SearchCriteria instance using the provided parameters.
NewTreeNode creates a new node with the given data.

# Constants

BFSMany is an action that extracts multiple nodes using breadth-first search.
DFSOne is an action that extracts only one node using depth-first search.
OnlyDirectChildren is an action that extracts only the direct children of a node.

# Variables

FilterNilFEFuncs is a predicate filter that filters out nil FilterErrFuncs.
GetChildrenFunc is a function that returns the children of an HTML node.
IsTextNodeSearch is a search criteria that matches text nodes.

# Structs

AttrPair is a struct that encapsulates an attribute key-value pair and a filter function.
Context is the context of the session.
ErrNoDataNodeFound is an error that is returned when no data nodes are found.
ErrNoNodesFound is an error that is returned when no nodes are found.
ErrNoTextNodeFound is an error that is returned when no text nodes are found.
HtmlTree is a struct that represents an HTML tree.
SearchCriteria is a struct that encapsulates the parameters for searching within an HTML node.
TreeNode is a node in a tree.
TreeNodeIterator is a pull-based iterator that iterates over the children of a TreeNode.

# Type aliases

ActionType is an enumeration of the different actions that can be performed on a node.
ExtractFunc is a function that extracts data from the HTML.
FilterErrFunc is a function that returns an error if a condition is not met.
GTEFunc is a function that extracts nodes from a tree.
NodeListParser is a function that parses a list of nodes.
WaitFunc is a function that waits for a page to load.