webengine

package
v0.0.0-...-a8c716a Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Browser

type Browser struct {
	// contains filtered or unexported fields
}

网站下载引擎

func NewBrowser

func NewBrowser(ctx context.Context, ops ...BrowserOption) (*Browser, error)

func (*Browser) Close

func (brow *Browser) Close()

Close 关闭浏览器 defer brow.Close()

func (*Browser) LoadPage

func (brow *Browser) LoadPage(ctx context.Context, urlPath string) (*BrowserPage, error)

type BrowserOption

type BrowserOption func(*Browser) error

func BrowserWithRemoteDevice

func BrowserWithRemoteDevice(remote string) BrowserOption

type BrowserPage

type BrowserPage struct {
	// contains filtered or unexported fields
}

func (*BrowserPage) Close

func (p *BrowserPage) Close()

Close 关闭页面

func (*BrowserPage) GetHTML

func (p *BrowserPage) GetHTML() (string, error)

GetHTML 获取标题

func (*BrowserPage) GetIcon

func (p *BrowserPage) GetIcon() (string, []byte, error)

GetIcon 获取Icon

func (*BrowserPage) GetTitle

func (p *BrowserPage) GetTitle() string

GetTitle 获取标题

func (*BrowserPage) ScreenshotPage

func (p *BrowserPage) ScreenshotPage(isFull, isFlag bool) (image.Image, error)

ScreenshotFullPage 截全图 isFull: 截全图, 滚动加载 isFlag: 截图增加url地址栏

Jump to

Keyboard shortcuts

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