crawler

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: MIT Imports: 18 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 {
	URL                   *url.URL
	Configuration         *configuration.Configuration
	PageCollector         *colly.Collector
	LinkFindCollector     *colly.Collector
	URLsToLinkFindRegex   *regexp.Regexp
	URLsNotToRequestRegex *regexp.Regexp
}

func New

func New(URL *url.URL, configuration *configuration.Configuration) (crawler Crawler, err error)

func (*Crawler) Crawl

func (crawler *Crawler) Crawl() (results chan string, err error)
func (crawler *Crawler) FindLinks(source string) (links []string, err error)

func (*Crawler) ParseRobots

func (crawler *Crawler) ParseRobots()

func (*Crawler) ParseSitemap

func (crawler *Crawler) ParseSitemap()

Jump to

Keyboard shortcuts

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