scraper

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2024 License: MIT Imports: 3 Imported by: 0

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 (pw *Playwright) GetLinks(source string) []string

type PlaywrightOptions

type PlaywrightOptions struct {
	Headless bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL