scraper

package module
v0.0.0-...-c7e1464 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtractAmazon

type ExtractAmazon struct {
	URL string
	Doc *goquery.Document
}

func NewExtractAmazon

func NewExtractAmazon(url string) (*ExtractAmazon, error)

func (*ExtractAmazon) GetImages

func (ea *ExtractAmazon) GetImages() []string

func (*ExtractAmazon) GetPrice

func (ea *ExtractAmazon) GetPrice() string

func (*ExtractAmazon) GetRating

func (ea *ExtractAmazon) GetRating() string

func (*ExtractAmazon) GetReviewCount

func (ea *ExtractAmazon) GetReviewCount() string

func (*ExtractAmazon) GetTitle

func (ea *ExtractAmazon) GetTitle() string

func (*ExtractAmazon) HasDeal

func (ea *ExtractAmazon) HasDeal(getRegularPrice bool) (bool, string)

func (*ExtractAmazon) IsAvailable

func (ea *ExtractAmazon) IsAvailable() bool

type ExtractFlipkart

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

func NewExtractFlipkart

func NewExtractFlipkart(url string) (*ExtractFlipkart, error)

NewExtractFlipkart initializes the scraper for the given URL

func (*ExtractFlipkart) GetImages

func (e *ExtractFlipkart) GetImages(width, height, quality int) []string

GetImages extracts product images

func (*ExtractFlipkart) GetPrice

func (e *ExtractFlipkart) GetPrice() string

GetPrice extracts the product price

func (*ExtractFlipkart) GetRating

func (e *ExtractFlipkart) GetRating() string

GetRating extracts the product rating

func (*ExtractFlipkart) GetTitle

func (e *ExtractFlipkart) GetTitle() string

GetTitle extracts the product title

func (*ExtractFlipkart) IsAvailable

func (e *ExtractFlipkart) IsAvailable() bool

IsAvailable checks if the product is available

type ExtractMeesho

type ExtractMeesho struct {
	URL string
	Doc *goquery.Document
}

func NewExtractMeesho

func NewExtractMeesho(url string) (*ExtractMeesho, error)

func (*ExtractMeesho) GetImages

func (m *ExtractMeesho) GetImages() []string

func (*ExtractMeesho) GetPrice

func (m *ExtractMeesho) GetPrice() string

func (*ExtractMeesho) GetRating

func (m *ExtractMeesho) GetRating() string

func (*ExtractMeesho) GetReviewCount

func (m *ExtractMeesho) GetReviewCount() string

func (*ExtractMeesho) GetTitle

func (m *ExtractMeesho) GetTitle() string

func (*ExtractMeesho) IsAvailable

func (m *ExtractMeesho) IsAvailable() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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