parser

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: MIT Imports: 13 Imported by: 4 modules, 5 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options added in v1.2.0

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

type Parser added in v1.2.0

type Parser []responseParser

func NewResponseParser added in v1.2.0

func NewResponseParser() *Parser

func (*Parser) InitWithOptions added in v1.2.0

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

func (*Parser) ParseResponse added in v1.2.0

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