Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SearchEngine ¶
type SearchEngine interface { EngineName() string UrlFormat() string Keyword() string ParsePage(document *goquery.Document) ([]NewsItem, error) }
spider engine 需要实现是的方法
type Spider ¶
type Spider struct { Engines map[string]SearchEngine // contains filtered or unexported fields }
func (*Spider) Work ¶
func (s *Spider) Work(job *SubscribeJob) error
Click to show internal directories.
Click to hide internal directories.