crawl

package
v0.0.0-...-d8649fa Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2021 License: MIT Imports: 7 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 interface {
	Crawl(urls []string, onResp func(response Response), onQuit func())
}

func NewConcurrentCrawler

func NewConcurrentCrawler(maxGoroutines int, followExternalLinks bool) Crawler

type Response

type Response struct {
	StartURL    *url.URL
	URL         *url.URL
	HTML        string
	Headers     http.Header
	Cookies     []*http.Cookie
	ScriptLinks []string
	Scripts     []string
	Styles      []string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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