scraper

package
v0.0.0-...-4cee859 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer

type Consumer func(context.Context, Result) error

type Parser

type Parser interface {
	Run(ctx context.Context, consumer Consumer) error
}

type Result

type Result struct {
	ScrapedAt time.Time
	TakenAt   time.Time
	Outflow   interface{}
}

func (*Result) MD5

func (r *Result) MD5() string

func (*Result) Sha1

func (r *Result) Sha1() string

type Scraper

type Scraper interface {
	Run(context.Context) ([][]string, error)
}

Jump to

Keyboard shortcuts

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