Documentation
¶
Overview ¶
Package scraper extracts metadata such as titles, descriptions, keywords, and favicons from web pages, with configurable options for the scraping process.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrScrapeNotStarted = errors.New("scrape not started")
Functions ¶
This section is empty.
Types ¶
type OptFn ¶
type OptFn func(*Options)
func WithContext ¶
func WithCustomSpinner ¶
func WithSpinner ¶
type Scraper ¶
type Scraper struct {
Options
}
func (*Scraper) Desc ¶
Desc retrieves the page description from the Scraper's Doc field, defaulting to a predefined value if not found.
default: `no description available (unfiled)`
Click to show internal directories.
Click to hide internal directories.