Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrRedirectToErrorPage = errors.New("redirected to error page")
Functions ¶
This section is empty.
Types ¶
type ProductPageCallbackFunc ¶
type ProductPageCallbackFunc func(p Product)
type Scraper ¶
type Scraper struct {
// contains filtered or unexported fields
}
func NewScraper ¶
func NewScraper(cacheDir string, threads int, callback ProductPageCallbackFunc) Scraper
cacheDir can be empty to disable caching.
func (Scraper) EnableLimits ¶
func (s Scraper) EnableLimits()
type StackQueueStorage ¶
type StackQueueStorage struct {
// contains filtered or unexported fields
}
StackQueueStorage is a very simple FILO stack storage backend for the colly queue.
func (*StackQueueStorage) AddRequest ¶
func (s *StackQueueStorage) AddRequest(r []byte) error
func (*StackQueueStorage) GetRequest ¶
func (s *StackQueueStorage) GetRequest() ([]byte, error)
func (*StackQueueStorage) Init ¶
func (s *StackQueueStorage) Init() error
func (*StackQueueStorage) QueueSize ¶
func (s *StackQueueStorage) QueueSize() (int, error)
Click to show internal directories.
Click to hide internal directories.