passive

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package passive implements the functionality for a non-headless crawler. It uses net/http for making requests and goquery for scraping web page HTML.

Index

Constants

This section is empty.

Variables

View Source
var Sources = map[string]source.Source{
	"waybackarchive": &waybackarchive.Source{},
	"commoncrawl":    &commoncrawl.Source{},
	"alienvault":     &alienvault.Source{},
}

Functions

This section is empty.

Types

type Crawler

type Crawler struct {
	*common.Shared
	// contains filtered or unexported fields
}

Crawler is a passive crawler instance

func New

func New(options *types.CrawlerOptions) (*Crawler, error)

New returns a new passive crawler instance

func (*Crawler) Close

func (c *Crawler) Close() error

Close closes the crawler process

func (*Crawler) Crawl

func (c *Crawler) Crawl(rootURL string) error

Crawl crawls a URL with the specified options

Directories

Path Synopsis
commoncrawl
Package commoncrawl logic
Package commoncrawl logic

Jump to

Keyboard shortcuts

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