scraper

package
v0.0.0-...-061b7fd Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrArgNil      error = errors.New("Argument may not be nil.")
	ErrPageEmpty   error = errors.New("Scraped page's body is empty.")
	ErrTargetEmpty error = errors.New("The scrape target may not be empty. Please provide a valid URI.")
)

Functions

This section is empty.

Types

type ScrapeAgent

type ScrapeAgent struct {
	Interval  time.Duration
	Collector *colly.Collector
	Notifier  *notifier.NotifyAgent
	Previous  string
}

func (*ScrapeAgent) CheckBackup

func (s *ScrapeAgent) CheckBackup() error

func (*ScrapeAgent) RunAgent

func (s *ScrapeAgent) RunAgent() error

func (*ScrapeAgent) SetCollector

func (s *ScrapeAgent) SetCollector(c *colly.Collector) error

func (*ScrapeAgent) SetInterval

func (s *ScrapeAgent) SetInterval(i time.Duration) error

func (*ScrapeAgent) SetNotifier

func (s *ScrapeAgent) SetNotifier(n *notifier.NotifyAgent) error

func (*ScrapeAgent) SetPrevious

func (s *ScrapeAgent) SetPrevious(p []byte) error

Jump to

Keyboard shortcuts

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