webshotapi

package
v0.0.0-...-5ca66f0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeImage = iota
	TypePDF
	TypeHTML
)

Variables

This section is empty.

Functions

func MustHTML

func MustHTML(page *rod.Page) func(toFile ...string) []byte

func Screenshot

func Screenshot(p Params) error

Types

type Params

type Params struct {
	Type             int
	URL              string
	Width            int
	Height           int
	OutPath          string
	Selection        string
	FullPage         bool
	ScrollStepHeight int
	ScrollStepTime   int
	InfinitePage     bool
}

Jump to

Keyboard shortcuts

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