generator

package
v0.0.0-...-ae3587a Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2020 License: LGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPHeaderGenerator

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

HTTPHeaderGenerator generates headers for http requests for scraping

func New

func New() *HTTPHeaderGenerator

New returns an initialized HTTPHeaderGenerator

func (*HTTPHeaderGenerator) AddHeaders

func (h *HTTPHeaderGenerator) AddHeaders(header *http.Header)

AddHeaders ads the generated headers to the request headers

func (*HTTPHeaderGenerator) GetRandomUserAgent

func (h *HTTPHeaderGenerator) GetRandomUserAgent() string

GetRandomUserAgent returns a random user agent

Jump to

Keyboard shortcuts

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