phantomjsfetcher

package
v2.0.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2019 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultPort = 20180
)

Functions

func CloseServer

func CloseServer() error

func Fetch

func Fetch(pageURL string, jscode string, headers map[string]string) (*phantomjs.Response, error)

func InitServer

func InitServer() error

Types

type PhantomJS

type PhantomJS struct {
	Fetcher *phantomjs.Fetcher
	*collector.Base
}

func New

func New() *PhantomJS

func (*PhantomJS) Close

func (s *PhantomJS) Close() error

func (*PhantomJS) Description

func (s *PhantomJS) Description() string

func (*PhantomJS) Do

func (s *PhantomJS) Do(pageURL string, data echo.Store) ([]byte, error)

func (*PhantomJS) Name

func (s *PhantomJS) Name() string

func (*PhantomJS) Start

func (s *PhantomJS) Start(opt echo.Store) (err error)

Jump to

Keyboard shortcuts

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