spider

package
v0.0.0-...-01830f5 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

This file contains the http functions used by the scum spider

This file contains the spider struct and correlated functions for the scum program

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitHTTP

func InitHTTP(followRedirects bool, proxy string, timeout int) error

InitHTTP initialises the http client

func Request

func Request(method string, URL string, agent string) (*http.Response, error)

Request will do the given Request with the previously initialised client and return the response

Types

type Spider

type Spider struct {
	// contains filtered or unexported fields
}

func NewSpider

func NewSpider(rootURL string,
	proxy string,
	agent string,
	rLevel int,
	threads int,
	includeSubs bool,
	includeEx bool,
	includeJS bool,
	includeCSS bool,
	includeIMG bool) *Spider

NewSpider will create a new Spider and return a pointer to the created struct

func (*Spider) Run

func (s *Spider) Run()

Run will run the scum webspider

Jump to

Keyboard shortcuts

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