parser

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultiParser

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

MultiParser combines multiple specialized providers (for compatibility)

func NewMultiParser

func NewMultiParser() *MultiParser

NewMultiParser creates a new multi-parser with provider rotation

func (*MultiParser) GetCurrentProviderName

func (p *MultiParser) GetCurrentProviderName() string

GetCurrentProviderName returns the name of current provider

func (*MultiParser) Parse added in v1.3.0

func (p *MultiParser) Parse() ([]*proxy.Proxy, []error)

ParseAll performs parsing of one provider (with rotation)

type Parser

type Parser interface {
	Parse() ([]*proxy.Proxy, error)
	Name() string
}

Parser interface for all proxy providers

type RotatingParser

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

RotatingParser rotates providers to avoid blocking

func NewRotatingParser

func NewRotatingParser() *RotatingParser

NewRotatingParser creates a new rotating parser

func (*RotatingParser) GetCurrentProviderName

func (p *RotatingParser) GetCurrentProviderName() string

GetCurrentProviderName returns the name of current provider

func (*RotatingParser) Next added in v1.3.0

func (p *RotatingParser) Next() ([]*proxy.Proxy, error)

ParseNext parses the next provider in rotation

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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