crawler

package
v0.2.12 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKatana added in v0.2.10

func NewKatana(show bool)

NewKatana 初始化 katana 爬虫,全局只初始化一次,共用一个,不然创建多次,时间长了,目标多了,小水管受不了

Types

type KatanaTask

type KatanaTask struct {
	Target   string
	OnResult types.OnResultCallback
}

func (*KatanaTask) StartCrawler

func (t *KatanaTask) StartCrawler()

type Runner added in v0.2.10

type Runner struct {
	Crawler engine.Engine
	Options *types.Options
	// contains filtered or unexported fields
}

Runner creates the required resources for crawling and executes the crawl process.

var Katana *Runner

func New added in v0.2.10

func New(options *types.Options) (*Runner, error)

New returns a new crawl runner structure

func (*Runner) Close added in v0.2.10

func (r *Runner) Close() error

Close closes the runner releasing resources

Directories

Path Synopsis
katana
pkg/engine/hybrid
Package hybrid implements the functionality for a hybrid-headless crawler.
Package hybrid implements the functionality for a hybrid-headless crawler.
pkg/engine/standard
Package standard implements the functionality for a non-headless crawler.
Package standard implements the functionality for a non-headless crawler.

Jump to

Keyboard shortcuts

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