parser

package
v0.0.0-...-a09fab8 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2026 License: MIT, MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	AutomaticFormFill      bool
	ScrapeJSLuiceResponses bool
	ScrapeJSResponses      bool
	DisableRedirects       bool
}

type Parser

type Parser []responseParser

func NewResponseParser

func NewResponseParser() *Parser

func (*Parser) InitWithOptions

func (p *Parser) InitWithOptions(options *Options)

func (*Parser) ParseResponse

func (p *Parser) ParseResponse(resp *navigation.Response) (navigationRequests []*navigation.Request)

parseResponse runs the response parsers on the navigation response

type ResponseParserFunc

type ResponseParserFunc func(resp *navigation.Response) []*navigation.Request

responseParserFunc is a function that parses the document returning new navigation items or requests for the crawler.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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