googlesearch

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoogleSearch

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

GoogleSearch is the Google search implementation for Dorkgen

func New

func New() *GoogleSearch

New creates a new instance of GoogleSearch

func (*GoogleSearch) AllInText

func (e *GoogleSearch) AllInText(text string) *GoogleSearch

AllInText searches text of page.

func (*GoogleSearch) And

func (e *GoogleSearch) And() *GoogleSearch

And puts an AND operator in the request

func (*GoogleSearch) Book

func (e *GoogleSearch) Book(keyword string) *GoogleSearch

Book searches for book titles related to keywords.

func (*GoogleSearch) Cache

func (e *GoogleSearch) Cache(url string) *GoogleSearch

Cache shows the version of the web page that Google has in its cache.

func (*GoogleSearch) Exclude

func (e *GoogleSearch) Exclude(tags *GoogleSearch) *GoogleSearch

Exclude excludes some results.

func (*GoogleSearch) Ext

func (e *GoogleSearch) Ext(ext string) *GoogleSearch

Ext searches for a particular file extension mentioned in the query.

func (*GoogleSearch) FileType

func (e *GoogleSearch) FileType(filetype string) *GoogleSearch

FileType searches for a particular filetype mentioned in the query.

func (*GoogleSearch) Group

func (e *GoogleSearch) Group(tags *GoogleSearch) *GoogleSearch

Group isolate tags between parentheses

func (*GoogleSearch) InAnchor

func (e *GoogleSearch) InAnchor(text string) *GoogleSearch

InAnchor search link anchor text.

func (*GoogleSearch) InText

func (e *GoogleSearch) InText(text string) *GoogleSearch

InText searches for the occurrences of keywords all at once or one at a time.

func (*GoogleSearch) InTitle

func (e *GoogleSearch) InTitle(value string) *GoogleSearch

InTitle searches for occurrences of keywords in title all or one.

func (*GoogleSearch) InURL

func (e *GoogleSearch) InURL(url string) *GoogleSearch

InURL searches for a URL matching one of the keywords.

func (*GoogleSearch) Info

func (e *GoogleSearch) Info(url string) *GoogleSearch

Info presents some information that Google has about a web page, including similar pages, the cached version of the page, and sites linking to the page.

func (*GoogleSearch) Maps

func (e *GoogleSearch) Maps(location string) *GoogleSearch

Maps searches for maps related to keywords.

func (*GoogleSearch) Or

func (e *GoogleSearch) Or() *GoogleSearch

Or puts an OR operator in the request

func (*GoogleSearch) Plain

func (e *GoogleSearch) Plain(value string) *GoogleSearch

Plain allows you to add additional values as string without any kind of formatting.

func (*GoogleSearch) QueryValues

func (e *GoogleSearch) QueryValues() url.Values

QueryValues returns search request as URL values

func (*GoogleSearch) Related

func (e *GoogleSearch) Related(url string) *GoogleSearch

Related list web pages that are “similar” to a specified web page.

func (*GoogleSearch) Site

func (e *GoogleSearch) Site(site string) *GoogleSearch

Site specifically searches that particular site and lists all the results for that site.

func (*GoogleSearch) String

func (e *GoogleSearch) String() string

String converts all tags to a single request

func (*GoogleSearch) URL

func (e *GoogleSearch) URL() string

URL converts tags to an encoded Google Search URL

Jump to

Keyboard shortcuts

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