Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Crawler ¶
type Crawler struct { Domain string UserAgent string MaxDepth int UseSitemap bool AllowedDomains []string Limits []colly.LimitRule OnResponse func(response CrawlerResponse) }
func NewCrawl ¶
func NewCrawl(domain string, options ...CrawlerOption) *Crawler
type CrawlerOption ¶
type CrawlerOption func(*Crawler)
func AllowedDomains ¶
func AllowedDomains(domains ...string) CrawlerOption
func Limit ¶
func Limit(rule LimitRule) CrawlerOption
func MaxDepth ¶
func MaxDepth(depth int) CrawlerOption
func UseSitemap ¶
func UseSitemap(use bool) CrawlerOption
func UserAgent ¶
func UserAgent(ua string) CrawlerOption
type CrawlerResponse ¶
type CrawlerResponse struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.