scraper

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2019 License: Apache-2.0 Imports: 11 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
	Emails              bool
	Recursively         bool
	Async               bool
	PrintLogs           bool
	FollowExternalLinks bool
	JSWait              bool
	Debug               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

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

func (*Scraper) Log

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

func (*Scraper) Scrape

func (s *Scraper) Scrape(scrapedEmails *[]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