spider

package
v0.0.67 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2025 License: Apache-2.0 Imports: 5 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 spider implements the logic for the `webscan spider` command. This command is used to crawl a list of URLs and report back the links found on each page, as well as any errors encountered during the crawl.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LinkDetails

type LinkDetails struct {
	Link   string `json:"link" yaml:"link"`
	Status int    `json:"status" yaml:"status"`
}

LinkDetails provides the details of a single link found during a web spider operation.

type WebSpiderReport

type WebSpiderReport struct {
	Targets []string      `json:"targets" yaml:"targets"`
	Links   []LinkDetails `json:"links" yaml:"links"`
	Errors  []string      `json:"errors" yaml:"errors"`
}

A WebSpiderReport represents a holistic report of all the links that were found during a web spider operation, including non-fatal errors that occurred during the operation.

func PerformWebSpider

func PerformWebSpider(ctx context.Context, targets []string) WebSpiderReport

PerformWebSpider performs a web spider operation against the provided targets, returning a WebSpiderReport with the results of the spider.

Jump to

Keyboard shortcuts

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