Versions in this module Expand all Collapse all v0 v0.55.2 Apr 12, 2025 v0.55.1 Apr 12, 2025 Changes in this version + const LoggerTag + type Element struct + Index int + Text string + type Scraper struct + func NewScraper(version string) *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)