scraper

package
v0.0.0-...-ca1e246 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCreateDir   = errors.New("scrapper: can't create directory")
	ErrLoadPage    = errors.New("scrapper: can't load page")
	ErrSavePage    = errors.New("scrapper: can't save page")
	ErrExtractURLs = errors.New("scrapper: can't extract urls")
)

Functions

func BenchmarkScraper

func BenchmarkScraper(baseURL, saveDir string, numOfRepeats, maxPages int)

Types

type Scraper

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

func New

func New() *Scraper

func (*Scraper) Start

func (s *Scraper) Start(baseURL, dirPath string, maxWorkers, maxPages int) int

Jump to

Keyboard shortcuts

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