extractor

package
v0.0.0-...-f1a8d02 Latest Latest
Warning

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

Go to latest
Published: May 9, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package extractor provides a XPath & CSS abstract utilities to enable easy data extraction from XML / HTML documents

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Css

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

func NewCss

func NewCss(content []byte) (*Css, error)

func (*Css) Extract

func (ext *Css) Extract(selector string) (goquery.Selection, error)

type XPath

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

XPath is a structure that

func NewXPath

func NewXPath(content []byte) (*XPath, error)

NewXPath is a constructor method

func (*XPath) Close

func (ext *XPath) Close()

Close the document once we're done using it

func (*XPath) Extract

func (ext *XPath) Extract(expr string) ([]xml.Node, error)

Extract is asda

Jump to

Keyboard shortcuts

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