googleimages

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Info = engines.Info{
	Domain:         "images.google.com",
	Name:           engines.GOOGLEIMAGES,
	URL:            "https://www.google.com/search?q=",
	ResultsPerPage: 10,
}

Functions

func Search(ctx context.Context, query string, relay *bucket.Relay, options engines.Options, settings config.Settings, timings config.Timings) []error

Types

type ISCHJ

type ISCHJ struct {
	Metadata []Metadata `json:"metadata"`
}

type Image

type Image struct {
	Url    string `json:"url"`
	Height int    `json:"height"`
	Width  int    `json:"width"`
}

type JsonResponse

type JsonResponse struct {
	ISCHJ ISCHJ `json:"ischj"`
}

type Metadata

type Metadata struct {
	Result        Result     `json:"result"`
	TextInGrid    TextInGrid `json:"text_in_grid"`
	OriginalImage Image      `json:"original_image"`
	Thumbnail     Image      `json:"thumbnail"`
}

type Result

type Result struct {
	ReferrerUrl string `json:"referrer_url"`
	PageTitle   string `json:"page_title"`
	SiteTitle   string `json:"site_title"`
}

type TextInGrid

type TextInGrid struct {
	Snippet string `json:"snippet"`
}

Jump to

Keyboard shortcuts

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