Versions in this module Expand all Collapse all v0 v0.6.0 Dec 25, 2018 Changes in this version + type Driver struct + func NewDriver(opts ...Option) *Driver + func (drv *Driver) Close() error + func (drv *Driver) GetDocument(ctx context.Context, targetURL values.String) (values.HTMLDocument, error) + func (drv *Driver) ParseDocument(_ context.Context, str values.String) (values.HTMLDocument, error) + type HTMLDocument struct + func NewHTMLDocument(url string, node *goquery.Document) (*HTMLDocument, error) + func (doc *HTMLDocument) Compare(other core.Value) int + func (doc *HTMLDocument) Type() core.Type + func (doc *HTMLDocument) URL() core.Value + type HTMLElement struct + func NewHTMLElement(node *goquery.Selection) (*HTMLElement, error) + func (el *HTMLElement) Compare(other core.Value) int + func (el *HTMLElement) Copy() core.Value + func (el *HTMLElement) CountBySelector(selector values.String) values.Int + func (el *HTMLElement) ExistsBySelector(selector values.String) values.Boolean + func (el *HTMLElement) GetAttribute(name values.String) core.Value + func (el *HTMLElement) GetAttributes() core.Value + func (el *HTMLElement) GetChildNode(idx values.Int) core.Value + func (el *HTMLElement) GetChildNodes() core.Value + func (el *HTMLElement) Hash() uint64 + func (el *HTMLElement) InnerHTML() values.String + func (el *HTMLElement) InnerHTMLBySelector(selector values.String) values.String + func (el *HTMLElement) InnerHTMLBySelectorAll(selector values.String) *values.Array + func (el *HTMLElement) InnerText() values.String + func (el *HTMLElement) InnerTextBySelector(selector values.String) values.String + func (el *HTMLElement) InnerTextBySelectorAll(selector values.String) *values.Array + func (el *HTMLElement) Length() values.Int + func (el *HTMLElement) MarshalJSON() ([]byte, error) + func (el *HTMLElement) NodeName() values.String + func (el *HTMLElement) NodeType() values.Int + func (el *HTMLElement) QuerySelector(selector values.String) core.Value + func (el *HTMLElement) QuerySelectorAll(selector values.String) core.Value + func (el *HTMLElement) String() string + func (el *HTMLElement) Type() core.Type + func (el *HTMLElement) Unwrap() interface{} + func (el *HTMLElement) Value() core.Value + type Option func(opts *Options) + func WithConcurrency(value int) Option + func WithDefaultBackoff() Option + func WithExponentialBackoff() Option + func WithLinearBackoff() Option + func WithMaxRetries(value int) Option + func WithProxy(address string) Option + func WithUserAgent(value string) Option + type Options struct