Versions in this module Expand all Collapse all v1 v1.1.0 Jul 27, 2020 Changes in this version type Web + func NewContextScrapper(ctx context.Context, url string) (*Web, error) v1.0.0 Jul 25, 2020 Changes in this version + type HeadingLevel string + const H1 + const H2 + const H3 + const H4 + const H5 + const H6 + type Query struct + Name string + Selector string + type QueryResult struct + Attr map[string]interface{} + Text string + type Viewport struct + Val map[string]string + func NewViewport(doc *goquery.Document) *Viewport + func (v *Viewport) Fetch(doc *goquery.Document) + func (v *Viewport) String() string + type Web struct + Doc *goquery.Document + URL string + func NewScrapper(url string) *Web + func (w *Web) CSRFToken() string + func (w *Web) Canonical() string + func (w *Web) Charset() string + func (w *Web) CleanParagraphs() []string + func (w *Web) ContentType() string + func (w *Web) Emails() ([]string, error) + func (w *Web) ExternalLinks() []string + func (w *Web) Fetch() error + func (w *Web) Headers() map[string]string + func (w *Web) Heading(opt ...HeadingLevel) [][]string + func (w *Web) Headings() [][]string + func (w *Web) Images() []string + func (w *Web) ImagesWithDetails() []map[string]interface{} + func (w *Web) InternalLinks() []string + func (w *Web) Links() []string + func (w *Web) LinksWithDetails() []map[string]interface{} + func (w *Web) Paragraphs() []string + func (w *Web) Query(query Query) []QueryResult + func (w *Web) Title() string + func (w *Web) Viewport() *Viewport