Documentation
¶
Index ¶
- type ExtractAmazon
- func (ea *ExtractAmazon) GetImages() []string
- func (ea *ExtractAmazon) GetPrice() string
- func (ea *ExtractAmazon) GetRating() string
- func (ea *ExtractAmazon) GetReviewCount() string
- func (ea *ExtractAmazon) GetTitle() string
- func (ea *ExtractAmazon) HasDeal(getRegularPrice bool) (bool, string)
- func (ea *ExtractAmazon) IsAvailable() bool
- type ExtractFlipkart
- type ExtractMeesho
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExtractAmazon ¶
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 ¶
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
Click to show internal directories.
Click to hide internal directories.