scraper

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parameters

type Parameters struct {
	Website string

	MaxDepth int
	Timeout  int

	Recursively         bool
	Async               bool
	JS                  bool
	FollowExternalLinks bool
	Debug               bool

	// Objects to scrape
	Emails bool
}

Configuration for the scrape.

type Scraper

type Scraper struct {
	Parameters
}

Goal of the scrape.

func New

func New(parameters Parameters) *Scraper

Initiate new scraper.

func (*Scraper) GetWebsite added in v1.3.0

func (s *Scraper) GetWebsite(secure bool) string

func (*Scraper) Log

func (s *Scraper) Log(v ...interface{})

func (*Scraper) Scrape

func (s *Scraper) Scrape() ([]string, error)

Scrape is responsible for main scraping logic.

Jump to

Keyboard shortcuts

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