fetch

package
v0.5.29 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamicFetcher

type DynamicFetcher struct {
	UserAgent        string
	WaitMilliseconds int
	// contains filtered or unexported fields
}

The DynamicFetcher renders js

func NewDynamicFetcher added in v0.5.8

func NewDynamicFetcher(ua string, ms int) *DynamicFetcher

func (*DynamicFetcher) Cancel added in v0.5.8

func (d *DynamicFetcher) Cancel()

func (*DynamicFetcher) Fetch

func (d *DynamicFetcher) Fetch(url string, opts FetchOpts) (string, error)

type FetchOpts added in v0.5.8

type FetchOpts struct {
	Interaction types.Interaction
}

type Fetcher

type Fetcher interface {
	Fetch(url string, opts FetchOpts) (string, error)
}

A Fetcher allows to fetch the content of a web page

type StaticFetcher

type StaticFetcher struct {
	UserAgent string
}

The StaticFetcher fetches static page content

func (*StaticFetcher) Fetch

func (s *StaticFetcher) Fetch(url string, opts FetchOpts) (string, error)

Jump to

Keyboard shortcuts

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