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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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