Documentation
¶
Overview ¶
Package browser implements a headless-browser-based page fetcher using rod.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fetcher ¶
type Fetcher struct {
// contains filtered or unexported fields
}
Fetcher implements crawler.Fetcher using a headless browser via rod.
func NewFetcher ¶
func NewFetcher(browserlessURL, userAgent string, timeout time.Duration, l logger.Logger) (*Fetcher, error)
NewFetcher creates a new Fetcher connected to a headless browser. If browserlessURL is non-empty, it connects to a remote browser instance; otherwise it launches a local headless browser.
Click to show internal directories.
Click to hide internal directories.