Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConcurrentEngine ¶
type ConcurrentEngine struct { Scheduler Scheduler Fetcher Fetcher WorkerCount int Writer WriteWorker }
ConcurrentEngine 开启并发爬虫采集器
type Fetcher ¶
type Fetcher interface { Fetch(string) ([]byte, error) Work(Request) (ParseResult, error) GetProxy() (string, error) }
Fetcher
Click to show internal directories.
Click to hide internal directories.