collect

package
v0.0.0-...-278ce41 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetermineEncoding

func DetermineEncoding(r *bufio.Reader) encoding.Encoding

DetermineEncoding 检测并返回当前HTML文本的编码格式

func HandleLinks(body []byte)

Types

type BaseFetch

type BaseFetch struct{}

func (BaseFetch) Get

func (BaseFetch) Get(req *spider.Request) ([]byte, error)

type BrowserFetch

type BrowserFetch struct {
	Timeout time.Duration
	Proxy   proxy.Func
	Logger  *zap.Logger
}

func (BrowserFetch) Get

func (b BrowserFetch) Get(request *spider.Request) ([]byte, error)

Get 模拟浏览器访问

Jump to

Keyboard shortcuts

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