Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseList ¶
func ParseList(body string, info ArticleInfo, taskC chan requests, resultC chan interface{})
基于xpath解析列表页
Types ¶
type ArticleInfo ¶
type ArticleInfo struct { Type int // contains filtered or unexported fields }
定义的item 结果体
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func CreateEngine ¶
创建引擎
func (*Engine) StartRequest ¶
func (e *Engine) StartRequest(startUrl string, call func(body string, info ArticleInfo, taskC chan requests, resultC chan interface{})) *Engine
仿 scrapy写了个start_request
Click to show internal directories.
Click to hide internal directories.