spiders

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2015 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SimpleSpider

type SimpleSpider struct {
	URL    string
	Method string
	Body   io.Reader
	// contains filtered or unexported fields
}

func NewSimpleGETSpider

func NewSimpleGETSpider(url string, spinnerFunc spider.SpinnerFunc) *SimpleSpider

Create a SimpleSpider that makes a get request to the specified url.

func NewSimpleSpider

func NewSimpleSpider(method, url string, body io.Reader, spinnerFunc spider.SpinnerFunc) *SimpleSpider

NewSimpleSpider creates a new SimpleSpider with provided arguments. This function requires a spider.SpinnerFunc to handle parsing of to response.

func (*SimpleSpider) Setup

func (s *SimpleSpider) Setup(ctx *spider.Context) (*spider.Context, error)

func (*SimpleSpider) Spin

func (s *SimpleSpider) Spin(ctx *spider.Context) error

Jump to

Keyboard shortcuts

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