gofinder

package
v0.0.0-...-dc5486f Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Title     bool
	Links     bool
	Comments  bool
	Scripts   bool
	Quiet     bool
	UserAgent string
}

Config represents a configuration object for Gofinder

func NewConfig

func NewConfig(ua string, q, te, le, ce, se bool) *Config

NewConfig creates the structure for us

type GoFinder

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

GoFinder is the default client used to retrieve and search for content

func NewClient

func NewClient(config *Config) *GoFinder

NewClient is used to create a new GoFinder client

func (*GoFinder) Find

func (g *GoFinder) Find(resp *http.Response) error

Find is used to find comment nodes within a page

func (*GoFinder) Get

func (g *GoFinder) Get(urlstr string) (*http.Response, error)

Get is used to retrieve a URL and ensure that the URL we request has a configured scheme.

Jump to

Keyboard shortcuts

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