Versions in this module Expand all Collapse all v1 v1.3.0 Mar 14, 2018 Changes in this version + func NodeName(s *Selection) string + func OuterHtml(s *Selection) (string, error) + type Document struct + Url *url.URL + func CloneDocument(doc *Document) *Document + func NewDocument(url string) (*Document, error) + func NewDocumentFromNode(root *html.Node) *Document + func NewDocumentFromReader(r io.Reader) (*Document, error) + func NewDocumentFromResponse(res *http.Response) (*Document, error) + type Matcher interface + Filter func([]*html.Node) []*html.Node + Match func(*html.Node) bool + MatchAll func(*html.Node) []*html.Node + type Selection struct + Nodes []*html.Node + func (s *Selection) Add(selector string) *Selection + func (s *Selection) AddClass(class ...string) *Selection + func (s *Selection) AddMatcher(m Matcher) *Selection + func (s *Selection) AddNodes(nodes ...*html.Node) *Selection + func (s *Selection) AddSelection(sel *Selection) *Selection + func (s *Selection) After(selector string) *Selection + func (s *Selection) AfterHtml(html string) *Selection + func (s *Selection) AfterMatcher(m Matcher) *Selection + func (s *Selection) AfterNodes(ns ...*html.Node) *Selection + func (s *Selection) AfterSelection(sel *Selection) *Selection + func (s *Selection) AndSelf() *Selection + func (s *Selection) Append(selector string) *Selection + func (s *Selection) AppendHtml(html string) *Selection + func (s *Selection) AppendMatcher(m Matcher) *Selection + func (s *Selection) AppendNodes(ns ...*html.Node) *Selection + func (s *Selection) AppendSelection(sel *Selection) *Selection + func (s *Selection) Attr(attrName string) (val string, exists bool) + func (s *Selection) AttrOr(attrName, defaultValue string) string + func (s *Selection) Before(selector string) *Selection + func (s *Selection) BeforeHtml(html string) *Selection + func (s *Selection) BeforeMatcher(m Matcher) *Selection + func (s *Selection) BeforeNodes(ns ...*html.Node) *Selection + func (s *Selection) BeforeSelection(sel *Selection) *Selection + func (s *Selection) Children() *Selection + func (s *Selection) ChildrenFiltered(selector string) *Selection + func (s *Selection) ChildrenMatcher(m Matcher) *Selection + func (s *Selection) Clone() *Selection + func (s *Selection) Closest(selector string) *Selection + func (s *Selection) ClosestMatcher(m Matcher) *Selection + func (s *Selection) ClosestNodes(nodes ...*html.Node) *Selection + func (s *Selection) ClosestSelection(sel *Selection) *Selection + func (s *Selection) Contains(n *html.Node) bool + func (s *Selection) Contents() *Selection + func (s *Selection) ContentsFiltered(selector string) *Selection + func (s *Selection) ContentsMatcher(m Matcher) *Selection + func (s *Selection) Each(f func(int, *Selection)) *Selection + func (s *Selection) EachWithBreak(f func(int, *Selection) bool) *Selection + func (s *Selection) Empty() *Selection + func (s *Selection) End() *Selection + func (s *Selection) Eq(index int) *Selection + func (s *Selection) Filter(selector string) *Selection + func (s *Selection) FilterFunction(f func(int, *Selection) bool) *Selection + func (s *Selection) FilterMatcher(m Matcher) *Selection + func (s *Selection) FilterNodes(nodes ...*html.Node) *Selection + func (s *Selection) FilterSelection(sel *Selection) *Selection + func (s *Selection) Find(selector string) *Selection + func (s *Selection) FindMatcher(m Matcher) *Selection + func (s *Selection) FindNodes(nodes ...*html.Node) *Selection + func (s *Selection) FindSelection(sel *Selection) *Selection + func (s *Selection) First() *Selection + func (s *Selection) Get(index int) *html.Node + func (s *Selection) Has(selector string) *Selection + func (s *Selection) HasClass(class string) bool + func (s *Selection) HasMatcher(m Matcher) *Selection + func (s *Selection) HasNodes(nodes ...*html.Node) *Selection + func (s *Selection) HasSelection(sel *Selection) *Selection + func (s *Selection) Html() (ret string, e error) + func (s *Selection) Index() int + func (s *Selection) IndexMatcher(m Matcher) int + func (s *Selection) IndexOfNode(node *html.Node) int + func (s *Selection) IndexOfSelection(sel *Selection) int + func (s *Selection) IndexSelector(selector string) int + func (s *Selection) Intersection(sel *Selection) *Selection + func (s *Selection) Is(selector string) bool + func (s *Selection) IsFunction(f func(int, *Selection) bool) bool + func (s *Selection) IsMatcher(m Matcher) bool + func (s *Selection) IsNodes(nodes ...*html.Node) bool + func (s *Selection) IsSelection(sel *Selection) bool + func (s *Selection) Last() *Selection + func (s *Selection) Length() int + func (s *Selection) Map(f func(int, *Selection) string) (result []string) + func (s *Selection) Next() *Selection + func (s *Selection) NextAll() *Selection + func (s *Selection) NextAllFiltered(selector string) *Selection + func (s *Selection) NextAllMatcher(m Matcher) *Selection + func (s *Selection) NextFiltered(selector string) *Selection + func (s *Selection) NextFilteredUntil(filterSelector, untilSelector string) *Selection + func (s *Selection) NextFilteredUntilMatcher(filter, until Matcher) *Selection + func (s *Selection) NextFilteredUntilNodes(filterSelector string, nodes ...*html.Node) *Selection + func (s *Selection) NextFilteredUntilSelection(filterSelector string, sel *Selection) *Selection + func (s *Selection) NextMatcher(m Matcher) *Selection + func (s *Selection) NextMatcherUntilNodes(filter Matcher, nodes ...*html.Node) *Selection + func (s *Selection) NextMatcherUntilSelection(filter Matcher, sel *Selection) *Selection + func (s *Selection) NextUntil(selector string) *Selection + func (s *Selection) NextUntilMatcher(m Matcher) *Selection + func (s *Selection) NextUntilNodes(nodes ...*html.Node) *Selection + func (s *Selection) NextUntilSelection(sel *Selection) *Selection + func (s *Selection) Not(selector string) *Selection + func (s *Selection) NotFunction(f func(int, *Selection) bool) *Selection + func (s *Selection) NotMatcher(m Matcher) *Selection + func (s *Selection) NotNodes(nodes ...*html.Node) *Selection + func (s *Selection) NotSelection(sel *Selection) *Selection + func (s *Selection) Parent() *Selection + func (s *Selection) ParentFiltered(selector string) *Selection + func (s *Selection) ParentMatcher(m Matcher) *Selection + func (s *Selection) Parents() *Selection + func (s *Selection) ParentsFiltered(selector string) *Selection + func (s *Selection) ParentsFilteredUntil(filterSelector, untilSelector string) *Selection + func (s *Selection) ParentsFilteredUntilMatcher(filter, until Matcher) *Selection + func (s *Selection) ParentsFilteredUntilNodes(filterSelector string, nodes ...*html.Node) *Selection + func (s *Selection) ParentsFilteredUntilSelection(filterSelector string, sel *Selection) *Selection + func (s *Selection) ParentsMatcher(m Matcher) *Selection + func (s *Selection) ParentsMatcherUntilNodes(filter Matcher, nodes ...*html.Node) *Selection + func (s *Selection) ParentsMatcherUntilSelection(filter Matcher, sel *Selection) *Selection + func (s *Selection) ParentsUntil(selector string) *Selection + func (s *Selection) ParentsUntilMatcher(m Matcher) *Selection + func (s *Selection) ParentsUntilNodes(nodes ...*html.Node) *Selection + func (s *Selection) ParentsUntilSelection(sel *Selection) *Selection + func (s *Selection) Prepend(selector string) *Selection + func (s *Selection) PrependHtml(html string) *Selection + func (s *Selection) PrependMatcher(m Matcher) *Selection + func (s *Selection) PrependNodes(ns ...*html.Node) *Selection + func (s *Selection) PrependSelection(sel *Selection) *Selection + func (s *Selection) Prev() *Selection + func (s *Selection) PrevAll() *Selection + func (s *Selection) PrevAllFiltered(selector string) *Selection + func (s *Selection) PrevAllMatcher(m Matcher) *Selection + func (s *Selection) PrevFiltered(selector string) *Selection + func (s *Selection) PrevFilteredUntil(filterSelector, untilSelector string) *Selection + func (s *Selection) PrevFilteredUntilMatcher(filter, until Matcher) *Selection + func (s *Selection) PrevFilteredUntilNodes(filterSelector string, nodes ...*html.Node) *Selection + func (s *Selection) PrevFilteredUntilSelection(filterSelector string, sel *Selection) *Selection + func (s *Selection) PrevMatcher(m Matcher) *Selection + func (s *Selection) PrevMatcherUntilNodes(filter Matcher, nodes ...*html.Node) *Selection + func (s *Selection) PrevMatcherUntilSelection(filter Matcher, sel *Selection) *Selection + func (s *Selection) PrevUntil(selector string) *Selection + func (s *Selection) PrevUntilMatcher(m Matcher) *Selection + func (s *Selection) PrevUntilNodes(nodes ...*html.Node) *Selection + func (s *Selection) PrevUntilSelection(sel *Selection) *Selection + func (s *Selection) Remove() *Selection + func (s *Selection) RemoveAttr(attrName string) *Selection + func (s *Selection) RemoveClass(class ...string) *Selection + func (s *Selection) RemoveFiltered(selector string) *Selection + func (s *Selection) RemoveMatcher(m Matcher) *Selection + func (s *Selection) ReplaceWith(selector string) *Selection + func (s *Selection) ReplaceWithHtml(html string) *Selection + func (s *Selection) ReplaceWithMatcher(m Matcher) *Selection + func (s *Selection) ReplaceWithNodes(ns ...*html.Node) *Selection + func (s *Selection) ReplaceWithSelection(sel *Selection) *Selection + func (s *Selection) SetAttr(attrName, val string) *Selection + func (s *Selection) Siblings() *Selection + func (s *Selection) SiblingsFiltered(selector string) *Selection + func (s *Selection) SiblingsMatcher(m Matcher) *Selection + func (s *Selection) Size() int + func (s *Selection) Slice(start, end int) *Selection + func (s *Selection) Text() string + func (s *Selection) ToggleClass(class ...string) *Selection + func (s *Selection) Union(sel *Selection) *Selection + func (s *Selection) Unwrap() *Selection + func (s *Selection) Wrap(selector string) *Selection + func (s *Selection) WrapAll(selector string) *Selection + func (s *Selection) WrapAllHtml(html string) *Selection + func (s *Selection) WrapAllMatcher(m Matcher) *Selection + func (s *Selection) WrapAllNode(n *html.Node) *Selection + func (s *Selection) WrapAllSelection(sel *Selection) *Selection + func (s *Selection) WrapHtml(html string) *Selection + func (s *Selection) WrapInner(selector string) *Selection + func (s *Selection) WrapInnerHtml(html string) *Selection + func (s *Selection) WrapInnerMatcher(m Matcher) *Selection + func (s *Selection) WrapInnerNode(n *html.Node) *Selection + func (s *Selection) WrapInnerSelection(sel *Selection) *Selection + func (s *Selection) WrapMatcher(m Matcher) *Selection + func (s *Selection) WrapNode(n *html.Node) *Selection + func (s *Selection) WrapSelection(sel *Selection) *Selection