crawler

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package crawler provides crawler utils.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoqueryClient

type GoqueryClient struct {
	*resty.Client
}

GoqueryClient is client to get goquery document.

func NewGoqueryClient

func NewGoqueryClient(c *resty.Client) *GoqueryClient

NewGoqueryClient returns a new GoqueryClient.

func (*GoqueryClient) GetDoc

func (c *GoqueryClient) GetDoc(uri string) (*goquery.Document, error)

GetDoc get goquery document with url.

func (*GoqueryClient) GetDocWithQuery

func (c *GoqueryClient) GetDocWithQuery(uri string, query url.Values) (*goquery.Document, error)

GetDoc get goquery document with url and query string.

Jump to

Keyboard shortcuts

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