scraper

package
v0.0.0-...-8836035 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scraper

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

func New

func New(logger *slog.Logger, results chan<- w.WordFreq) *Scraper

func (*Scraper) CalcFreqWords

func (s *Scraper) CalcFreqWords(url string) (map[string]uint, error)

function calculates frequency of occurence of the words in given url and sends it the channel

type UrlIterator

type UrlIterator interface {
	Next() (string, bool)
}

define interface where it will be used

Jump to

Keyboard shortcuts

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