crawler

package
v0.0.0-...-949a5e8 Latest Latest
Warning

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

Go to latest
Published: May 9, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CrawlArticle

func CrawlArticle(title string, prefix string, hg httpGetter) (db.Article, error)

CrawlArticle : Crawls an article given its title

Types

type Crawler

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

func NewCrawler

func NewCrawler(nWorkers int, prefix string, startTitle string, database db.DB) *Crawler

func (*Crawler) AlwaysRefill

func (c *Crawler) AlwaysRefill()

until we find a better solution

func (*Crawler) Start

func (c *Crawler) Start()

Jump to

Keyboard shortcuts

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