crawler

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Contest

type Contest struct {
	// contains filtered or unexported fields
}

func NewContest

func NewContest(client *http.Client) *Contest

func (*Contest) Do

type ContestArchive

type ContestArchive struct {
	// contains filtered or unexported fields
}

func NewContestArchive

func NewContestArchive(client *http.Client) *ContestArchive

func (*ContestArchive) Do

type ContestTask

type ContestTask struct {
	// contains filtered or unexported fields
}

func NewContestTask

func NewContestTask(client *http.Client) *ContestTask

func (*ContestTask) Do

type Crawler

type Crawler struct {
	Path string
	// contains filtered or unexported fields
}

func NewCrawler

func NewCrawler(path string) *Crawler

func (Crawler) DocumentGet

func (c Crawler) DocumentGet(ctx context.Context, queries url.Valuer) (*goquery.Document, error)

func (Crawler) DocumentPost

func (c Crawler) DocumentPost(ctx context.Context, queries, bodies url.Valuer) (*goquery.Document, error)

func (Crawler) Get

func (c Crawler) Get(ctx context.Context, queries url.Valuer) (*http.Response, error)

func (Crawler) LoggedIn

func (c Crawler) LoggedIn(ctx context.Context, doc *goquery.Document) bool

func (Crawler) Post

func (c Crawler) Post(ctx context.Context, queries, bodies url.Valuer) (*http.Response, error)

func (*Crawler) WithClient

func (c *Crawler) WithClient(client *http.Client) *Crawler

func (*Crawler) WithPathParam

func (c *Crawler) WithPathParam(key, value string) *Crawler

type Home

type Home struct {
	// contains filtered or unexported fields
}

func NewHome

func NewHome(client *gohttp.Client) *Home

func (*Home) Do

func (c *Home) Do(ctx context.Context, req *requests.Home) (*responses.Home, error)

type Login

type Login struct {
	// contains filtered or unexported fields
}

func NewLogin

func NewLogin(client *gohttp.Client) *Login

func (*Login) Do

func (c *Login) Do(ctx context.Context, req *requests.Login) (*responses.Login, error)

type Submit

type Submit struct {
	// contains filtered or unexported fields
}

func NewSubmit

func NewSubmit(client *http.Client) *Submit

func (*Submit) Do

func (c *Submit) Do(ctx context.Context, req requests.Submit) (*responses.Submit, error)

type Task added in v0.0.7

type Task struct {
	// contains filtered or unexported fields
}

func NewTask added in v0.0.7

func NewTask(client *http.Client) *Task

func (*Task) Do added in v0.0.7

func (c *Task) Do(ctx context.Context, req requests.Task) (*responses.Task, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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