parser

package
v0.0.0-...-977eb4a Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxPagingDocs = 100
)

Variables

This section is empty.

Functions

func DetectParamInfo

func DetectParamInfo(adjacentNumberGroups *info.MonotonicPageInfoGroups, docURL string, logger logutil.Logger) *info.PageParamInfo

DetectParamInfo creates a PageParamInfo based on outlinks and numeric text around them. Always return PageParamInfo (never nil). If no page parameter is detected or determined to be best, its ParamType is Unset.

Types

type DetectionState

type DetectionState struct {
	// contains filtered or unexported fields
}

DetectionState keeps track of the detection state: - best PageParamInfo detected so far - if multiple page patterns have been found.

type PageCandidate

type PageCandidate struct {
	// contains filtered or unexported fields
}

type PageCandidatesMap

type PageCandidatesMap map[string]PageCandidate

PageCandidatesMap stores a map of URL pattern to its associated list of PageLinkInfo's.

Jump to

Keyboard shortcuts

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