crawler

package
v0.0.0-...-a0d54a6 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Crawler

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

func New

func New(db *db.DB, wiki *wikipedia.Client) *Crawler

New creates a new crawler.

func (*Crawler) CrawlOnce

func (c *Crawler) CrawlOnce(ctx context.Context) error

CrawlOnce does one pull of the top list of articles and then fetches them all.

Jump to

Keyboard shortcuts

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