domparser

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseData

func ParseData(data []byte) (*goquery.Document, error)

Types

type Document

type Document struct {
	*goquery.Document
}

func ParseURL

func ParseURL(url string) (*Document, error)

func (*Document) NextElement

func (d *Document) NextElement() *Element

func (*Document) NextElementQuerySelector

func (d *Document) NextElementQuerySelector(selector string) *Element

func (*Document) QuerySelector

func (d *Document) QuerySelector(selector string) *Element

func (*Document) QuerySelectorAll

func (d *Document) QuerySelectorAll(selector string, f func(*Element)) *Element

func (*Document) Text

func (d *Document) Text() string

type Element

type Element struct {
	*goquery.Selection
}

func (*Element) Attr

func (s *Element) Attr(attributeName string) string

func (*Element) ForEach

func (s *Element) ForEach(f func(*Element)) *Element

func (*Element) GetChildParentContent

func (s *Element) GetChildParentContent(selector string) string

func (*Element) Href

func (s *Element) Href() string

func (*Element) NextElement

func (s *Element) NextElement() *Element

func (*Element) NextElementQuerySelector

func (s *Element) NextElementQuerySelector(selector string) *Element

func (*Element) NextElementQuerySelectorAll

func (s *Element) NextElementQuerySelectorAll(selector string, f func(*Element)) *Element

func (*Element) Number

func (s *Element) Number() int

func (*Element) QuerySelector

func (s *Element) QuerySelector(selector string) *Element

func (*Element) QuerySelectorAll

func (s *Element) QuerySelectorAll(selector string, f func(*Element)) *Element

func (*Element) Text

func (s *Element) Text() string

Jump to

Keyboard shortcuts

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