crawler

package
v0.0.0-...-70bf070 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Crawl

func Crawl(config *Config)

Types

type Config

type Config struct {
	URL               string
	Depth             int
	SkipSSL           bool
	Threads           int
	Proxy             string
	UserAgent         string
	OutputPath        string
	OutputFilename    string
	MinimumWordCount  int
	MininumWordLength int
	MaximumWordLength int
	Quiet             bool
	Domains           []string
	Offsite           bool
	ShowCount         bool
}

type Stats

type Stats struct {
	RequestCount  uint64
	ResponseCount uint64
	ErrorCount    uint64
	TotalWords    uint64
	TotalTime     float64
}

func (*Stats) String

func (s *Stats) String() string

type WordMap

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

func NewWordMap

func NewWordMap() *WordMap

func (*WordMap) Add

func (w *WordMap) Add(word string)

func (*WordMap) Sort

func (w *WordMap) Sort()

Jump to

Keyboard shortcuts

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