package
0.4.3
Repository: https://github.com/a11en4sec/crawler.git
Documentation: pkg.go.dev

# README

引擎调用过程v1


                Seeds
                   |
                   |       req           ParseFunc(req) HandleResult
requestCh----> reqQueue -----> workerCh ----------> out-----------> result:
^                                                                       - result.item ==> 存储
|                                                                       - result.req |
|---------------<----------------------<---------------------<-----------------------|

引擎调用过程v2


                Seeds
                   |
                   |                req           (Pull)                  result=ParseFunc(body,r)        HandleResult()
requestCh--> reqQueue(普通队列)     ----->workerCh-------> CreateWorker() ------------------------> out通道--result.Items ==> DB 
^       |--> priReqQueue(优先级队列) ------>|     |-------> CreateWorker()             |
|                                               |--------> CreateWorker()         - result.Requestrts...
|                                               | ......                             |       
|                                                                                    |
|                                                                                    |
|---------------<----------------------<--------Push-------------<-------------------|

数据结构

# Functions

AddJsReq 用于动态规则添加请求。.
AddJsReqs 用于动态规则添加请求。.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

Store 全局爬虫任务实例.

# Structs

No description provided by the author
No description provided by the author
Schedule 实现了接口Scheduler.

# Interfaces

No description provided by the author

# Type aliases

No description provided by the author