crawler

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CrawlConfig

type CrawlConfig struct {
	SeedURL      string
	MaxDepth     int
	Concurrency  int
	Timeout      int
	Proxy        string
	IgnoreRobots bool
	Headers      []string
	Cookies      string
}

CrawlConfig holds crawler configuration.

type CrawlResult

type CrawlResult struct {
	URLs      []DiscoveredURL
	Forms     []DiscoveredForm
	APIRoutes []string
	JSFiles   []string
}

CrawlResult holds all discovered resources.

func Crawl

func Crawl(config CrawlConfig) (*CrawlResult, error)

Crawl performs web crawling starting from the seed URL.

type DiscoveredForm

type DiscoveredForm struct {
	Action string
	Method string
	Inputs []FormInput
}

DiscoveredForm represents a found HTML form.

type DiscoveredURL

type DiscoveredURL struct {
	URL    string
	Method string
	Source string
	Params []string
}

DiscoveredURL represents a found URL.

type FormInput

type FormInput struct {
	Name  string
	Type  string
	Value string
}

FormInput represents a form input field.

Jump to

Keyboard shortcuts

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