yandex

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildImageURL added in v0.4.1

func BuildImageURL(q core.Query, page int) (string, error)

func BuildURL

func BuildURL(q core.Query, page int) (string, error)
func Search(query core.Query) ([]core.SearchResult, error)

Types

type ImageData added in v0.4.1

type ImageData struct {
	InitalState struct {
		SerpList struct {
			Items struct {
				Entities map[string]ImageEntity `json:"entities"`
			} `json:"items"`
		} `json:"serpList"`
	} `json:"initialState"`
}

type ImageEntity added in v0.4.1

type ImageEntity struct {
	ID        string `json:"id"`
	Rank      int    `json:"pos"`
	Width     int    `json:"origWidth"`
	Height    int    `json:"origHeight"`
	Title     string `json:"alt"`
	OrigURL   string `json:"origUrl"`
	ThumbURL  string `json:"image"`
	Freshness string `json:"freshnessCounter"`
	IsGIF     bool   `json:"gifLabel"`
}

type Yandex

type Yandex struct {
	core.Browser
	core.SearchEngineOptions
	// contains filtered or unexported fields
}

func New

func New(browser core.Browser, opts core.SearchEngineOptions) *Yandex

func (*Yandex) GetRateLimiter added in v0.2.1

func (yand *Yandex) GetRateLimiter() *rate.Limiter

func (*Yandex) Name

func (yand *Yandex) Name() string

func (*Yandex) Search

func (yand *Yandex) Search(query core.Query) ([]core.SearchResult, error)

func (*Yandex) SearchImage added in v0.4.1

func (yand *Yandex) SearchImage(query core.Query) ([]core.SearchResult, error)

Jump to

Keyboard shortcuts

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