Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPlaywright ¶
func NewPlaywright(option *PlaywrightOptions) (model.Scraper, error)
Types ¶
type Playwright ¶
type Playwright struct { Pw *playwright.Playwright Browser playwright.Browser BrowserCtx playwright.BrowserContext Page playwright.Page }
func (*Playwright) GetContent ¶
func (pw *Playwright) GetContent(source string) string
func (*Playwright) GetLinks ¶
func (pw *Playwright) GetLinks(source string) []string
type PlaywrightOptions ¶
type PlaywrightOptions struct {
Headless bool
}
Click to show internal directories.
Click to hide internal directories.