engine

package
v0.0.0-...-b9337ff Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(seed ...Request)

Types

type PaseResult

type PaseResult struct {
	Requests []Request     //解析器返回一个url对应的解析器名称
	Items    []interface{} //解析器对应的结果值
}

func NilParser

func NilParser([]byte) PaseResult

type Request

type Request struct {
	Url        string                  //下一次要爬虫的地址
	ParserFunc func([]byte) PaseResult //地址内容对应的解析器
}

Jump to

Keyboard shortcuts

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