Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CollyScraper ¶
type CollyScraper struct {
Collector *colly.Collector
Transport *http.Transport
Response *http.Response
TimeoutSeconds int
LoadingTimeoutSeconds int
UserAgent string
// contains filtered or unexported fields
}
func (*CollyScraper) CanRenderPage ¶
func (s *CollyScraper) CanRenderPage() bool
func (*CollyScraper) EvalJS ¶
func (s *CollyScraper) EvalJS(jsProp string) (*string, error)
Colly cannot eval JS
func (*CollyScraper) Init ¶
func (s *CollyScraper) Init() error
func (*CollyScraper) Scrape ¶
func (s *CollyScraper) Scrape(paramURL string) (*ScrapedData, error)
func (*CollyScraper) SetDepth ¶
func (s *CollyScraper) SetDepth(depth int)
type GoWapTransport ¶
func NewGoWapTransport ¶
func NewGoWapTransport(t *http.Transport, f func(resp *http.Response)) *GoWapTransport
type RodScraper ¶
type RodScraper struct {
Browser *rod.Browser
Page *rod.Page
TimeoutSeconds int
LoadingTimeoutSeconds int
UserAgent string
// contains filtered or unexported fields
}
func (*RodScraper) CanRenderPage ¶
func (s *RodScraper) CanRenderPage() bool
func (*RodScraper) Init ¶
func (s *RodScraper) Init(url string) error
func (*RodScraper) Scrape ¶
func (s *RodScraper) Scrape(paramURL string) (*ScrapedData, error)
func (*RodScraper) SetDepth ¶
func (s *RodScraper) SetDepth(depth int)
type ScrapedData ¶
type ScrapedURL ¶
Click to show internal directories.
Click to hide internal directories.