parser

package
v0.0.0-...-8b866e9 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2019 License: Apache-2.0 Imports: 26 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Classifier

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

func NewClassifier

func NewClassifier(dsn string) (c *Classifier, err error)

func (*Classifier) GetCookieDetail

func (c *Classifier) GetCookieDetail(name string) (cookieType string, cookieDesc string, err error)

type Task

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

func NewTask

func NewTask(tc *TaskConfig) *Task

func (*Task) Cleanup

func (t *Task) Cleanup()

func (*Task) FormatEmail

func (t *Task) FormatEmail() (str string, err error)

func (*Task) OutputHTML

func (t *Task) OutputHTML() (str string, err error)

func (*Task) OutputJSON

func (t *Task) OutputJSON(pretty bool) (str string, err error)

func (*Task) OutputPDF

func (t *Task) OutputPDF() (blob []byte, err error)

func (*Task) OutputPDFToFile

func (t *Task) OutputPDFToFile(filename string) (err error)

func (*Task) Parse

func (t *Task) Parse(site string) (err error)

func (*Task) Start

func (t *Task) Start() (err error)

func (*Task) Version

func (t *Task) Version() (*godet.Version, error)

type TaskConfig

type TaskConfig struct {
	Timeout           time.Duration
	WaitAfterPageLoad time.Duration
	Verbose           bool
	ChromeApp         string
	DebuggerPort      int
	Headless          bool
	Classifier        *Classifier
}

Jump to

Keyboard shortcuts

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