collector

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Browsers = map[string]Browser{}
)

Functions

func BrowserKeys

func BrowserKeys() []string

func RandomName

func RandomName(n int) string

Types

type Base

type Base struct {
	Proxy       string
	Timeout     int
	RandomDelay string

	Cookies      []*http.Cookie
	CookieString string
	Header       map[string]string
	UserAgent    string
	Extra        echo.Store
	// contains filtered or unexported fields
}

func (*Base) Close

func (s *Base) Close() error

func (*Base) Description

func (s *Base) Description() string

func (*Base) Do

func (s *Base) Do(pageURL string, data echo.Store) ([]byte, error)

func (*Base) Name

func (s *Base) Name() string

func (*Base) Sleep

func (s *Base) Sleep() Browser

func (*Base) SleepSeconds

func (s *Base) SleepSeconds() int

func (*Base) Start

func (s *Base) Start(opt echo.Store) (err error)

func (*Base) Transcoded

func (s *Base) Transcoded() bool

type Browser

type Browser interface {
	Start(echo.Store) error
	Close() error
	Name() string
	Description() string
	Transcoded() bool
	Do(pageURL string, data echo.Store) ([]byte, error)
}

Directories

Path Synopsis
driver

Jump to

Keyboard shortcuts

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