liquipedia

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTeamProfilePageParser added in v1.3.1

func NewTeamProfilePageParser() *teamProfilePageParser

func NewUpComingMatchesPageParser added in v1.3.1

func NewUpComingMatchesPageParser() *upComingMatchesPageParser

Types

type Client

type Client struct{}

func NewClient

func NewClient() *Client

func (*Client) GetScheduledMatches

func (cre *Client) GetScheduledMatches(ctx context.Context) ([]*api.Match, error)

func (*Client) GetTeamDetailsPage added in v1.2.7

func (cre *Client) GetTeamDetailsPage(ctx context.Context, url string) (*api.Team, error)

type CrawData added in v1.3.1

type CrawData interface {
	[]*api.Match | *api.Team
}

type PageParser added in v1.3.1

type PageParser[T CrawData] interface {
	RootSelector() string
	Parse() colly.HTMLCallback
	Result() (T, error)
}

Jump to

Keyboard shortcuts

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