headless

package
v0.0.0-...-da513fb Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2019 License: MIT Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is used for interacting with headless Chrome browser

func New

func New() *Server

New returns a new Server instance

func (*Server) GetWebpageSourceCode

func (ser *Server) GetWebpageSourceCode(ctx context.Context, url string) (string, error)

GetWebpageSourceCode get html source code for webpage, including javascript-based dynamic webpage

func (*Server) Start

func (ser *Server) Start() error

Start starts headless Chrome browser

func (*Server) Stop

func (ser *Server) Stop() error

Stop kills spawned background child process

Jump to

Keyboard shortcuts

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