Documentation ¶
Index ¶
- Constants
- type Element
- type Scraper
- func (o *Scraper) FetchAndScrape(ctx context.Context, url, queryPath string, handler func(e Element)) error
- func (o *Scraper) Scrape(queryPath string, handler func(e Element)) error
- func (o *Scraper) WithLogger(l log.Logger) *Scraper
- func (o *Scraper) WithPreloadedDoc(ctx context.Context, url string) (*Scraper, error)
- func (o *Scraper) WithPreloadedDocFromBytes(b []byte) (*Scraper, error)
Constants ¶
View Source
const LoggerTag = "SCRAPER"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scraper ¶
type Scraper struct {
// contains filtered or unexported fields
}
func NewScraper ¶
func NewScraper() *Scraper
func (*Scraper) FetchAndScrape ¶
func (*Scraper) WithLogger ¶
To be useful WithLogger should come ahead of With...() functions
func (*Scraper) WithPreloadedDoc ¶
Click to show internal directories.
Click to hide internal directories.