search

package
v0.0.0-...-09aba50 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2025 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Agents = []string{
	"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36",
	"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36",
}
View Source
var Engines = []string{
	"https://www.google.com/search?q=%s&num=100&start=%d",
	"https://www.bing.com/search?q=%s&count=50&first=%d",
	"https://duckduckgo.com/html/?q=%s&s=%d",
	"https://search.yahoo.com/search?p=%s&n=100&b=%d",
}

Functions

func BuildURL

func BuildURL(engine, query string, page int) string

func Colorize

func Colorize(name string) string

func EngineName

func EngineName(url string) string

func FilterEngines

func FilterEngines(exclude string) []string

func Run

func Run(query string, engines []string, proxy string, verbose bool)

Types

type ClientPool

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

func NewClientPool

func NewClientPool(proxy string) *ClientPool

func (*ClientPool) Get

func (p *ClientPool) Get(domain string, proxy string) (*http.Client, *rate.Limiter)

Jump to

Keyboard shortcuts

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