scrape

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2018 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 Statistic

type Statistic struct {
	Items int
}

Statistic contains statistics about a scrape

type Task

type Task struct {
	URL     string
	Payload string
}

Task is a scrape task

func URLtoTask

func URLtoTask(urls []string) []Task

URLtoTask is a helper function to convert a list of URLs to a list of tasks

type TaskDocumentResponse

type TaskDocumentResponse struct {
	Document goquery.Document
	URL      string
}

TaskDocumentResponse is the result of a fetched task and it's originating URL

func URLToDocument

func URLToDocument(c *http.Client, tasks []Task) ([]TaskDocumentResponse, error)

URLToDocument is a convinience function to directly get a goquery document(s) from a list of URLs

Jump to

Keyboard shortcuts

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