Documentation
¶
Index ¶
- func NewRobotManager() *robortManager
- type CrawlState
- type Crawler
- type Option
- func WithFetcher(fetcher wbot.Fetcher) Option
- func WithFilter(rules ...*wbot.FilterRule) Option
- func WithLogger(logger wbot.Logger) Option
- func WithMaxDepth(maxDepth int32) Option
- func WithParallel(parallel int) Option
- func WithProxies(proxies []string) Option
- func WithRateLimit(rates ...*wbot.RateLimit) Option
- func WithStore(store wbot.Store) Option
- func WithUserAgents(userAgents []string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRobotManager ¶
func NewRobotManager() *robortManager
Types ¶
type CrawlState ¶
type CrawlState int32
const ( CrawlQuit CrawlState = iota CrawlFinished CrawlInProgress CrawlPaused )
type Option ¶
type Option func(c *Crawler)
func WithFetcher ¶
func WithFilter ¶
func WithFilter(rules ...*wbot.FilterRule) Option
func WithLogger ¶
func WithMaxDepth ¶
func WithParallel ¶
func WithProxies ¶
func WithRateLimit ¶
func WithUserAgents ¶
Click to show internal directories.
Click to hide internal directories.