webscrape

package
v0.0.0-...-2840294 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2015 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFragments

func GetFragments(hc HttpClient, r *http.Request, qs []*QueryElement)

Types

type HttpClient

type HttpClient interface {
	Do(req *http.Request) (resp *http.Response, err error)
}

type QueryElement

type QueryElement struct {
	Selectors []string
	Element   *container.Element

	// If not empty, Tag contains the tag of the element, which should
	// enclose the content. In that turn, all other HTML tags are stripped,
	// leaving only the bare tags.
	// If Tag is "-", it behaves much like Tag=="", except that the surrounding,
	// html-tag is also present in the output.
	Tag string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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