Documentation
¶
Index ¶
- Variables
- type AmazonBestsellersOpts
- type AmazonChoices
- type AmazonPricingOpts
- type AmazonProductAds
- type AmazonProductCategory
- type AmazonProductDelivery
- type AmazonProductOpts
- type AmazonProductSalesRank
- type AmazonQuestions
- type AmazonQuestionsOpts
- type AmazonRatingStarDistribution
- type AmazonRefurbishedProduct
- type AmazonReviews
- type AmazonReviewsOpts
- type AmazonSearchOpts
- type AmazonSellersOpts
- type AmazonUrlOpts
- type Content
- type EcommerceClient
- func (c *EcommerceClient) ScrapeAmazonBestsellers(query string, opts ...*AmazonBestsellersOpts) (*Resp, error)
- func (c *EcommerceClient) ScrapeAmazonBestsellersCtx(ctx context.Context, query string, opts ...*AmazonBestsellersOpts) (*Resp, error)
- func (c *EcommerceClient) ScrapeAmazonPricing(query string, opts ...*AmazonPricingOpts) (*Resp, error)
- func (c *EcommerceClient) ScrapeAmazonPricingCtx(ctx context.Context, query string, opts ...*AmazonPricingOpts) (*Resp, error)
- func (c *EcommerceClient) ScrapeAmazonProduct(query string, opts ...*AmazonProductOpts) (*Resp, error)
- func (c *EcommerceClient) ScrapeAmazonProductCtx(ctx context.Context, query string, opts ...*AmazonProductOpts) (*Resp, error)
- func (c *EcommerceClient) ScrapeAmazonQuestions(query string, opts ...*AmazonQuestionsOpts) (*Resp, error)
- func (c *EcommerceClient) ScrapeAmazonQuestionsCtx(ctx context.Context, query string, opts ...*AmazonQuestionsOpts) (*Resp, error)
- func (c *EcommerceClient) ScrapeAmazonReviews(query string, opts ...*AmazonReviewsOpts) (*Resp, error)
- func (c *EcommerceClient) ScrapeAmazonReviewsCtx(ctx context.Context, query string, opts ...*AmazonReviewsOpts) (*Resp, error)
- func (c *EcommerceClient) ScrapeAmazonSearch(query string, opts ...*AmazonSearchOpts) (*Resp, error)
- func (c *EcommerceClient) ScrapeAmazonSearchCtx(ctx context.Context, query string, opts ...*AmazonSearchOpts) (*Resp, error)
- func (c *EcommerceClient) ScrapeAmazonSellers(query string, opts ...*AmazonSellersOpts) (*Resp, error)
- func (c *EcommerceClient) ScrapeAmazonSellersCtx(ctx context.Context, query string, opts ...*AmazonSellersOpts) (*Resp, error)
- func (c *EcommerceClient) ScrapeAmazonUrl(url string, opts ...*AmazonUrlOpts) (*Resp, error)
- func (c *EcommerceClient) ScrapeAmazonUrlCtx(ctx context.Context, url string, opts ...*AmazonUrlOpts) (*Resp, error)
- func (c *EcommerceClient) ScrapeGoogleShoppingPricing(query string, opts ...*GoogleShoppingPricingOpts) (*Resp, error)
- func (c *EcommerceClient) ScrapeGoogleShoppingPricingCtx(ctx context.Context, query string, opts ...*GoogleShoppingPricingOpts) (*Resp, error)
- func (c *EcommerceClient) ScrapeGoogleShoppingProduct(query string, opts ...*GoogleShoppingProductOpts) (*Resp, error)
- func (c *EcommerceClient) ScrapeGoogleShoppingProductCtx(ctx context.Context, query string, opts ...*GoogleShoppingProductOpts) (*Resp, error)
- func (c *EcommerceClient) ScrapeGoogleShoppingSearch(query string, opts ...*GoogleShoppingSearchOpts) (*Resp, error)
- func (c *EcommerceClient) ScrapeGoogleShoppingSearchCtx(ctx context.Context, query string, opts ...*GoogleShoppingSearchOpts) (*Resp, error)
- func (c *EcommerceClient) ScrapeGoogleShoppingUrl(url string, opts ...*GoogleShoppingUrlOpts) (*Resp, error)
- func (c *EcommerceClient) ScrapeGoogleShoppingUrlCtx(ctx context.Context, url string, opts ...*GoogleShoppingUrlOpts) (*Resp, error)
- func (c *EcommerceClient) ScrapeUniversalUrl(url string, opts ...*UniversalUrlOpts) (*Resp, error)
- func (c *EcommerceClient) ScrapeUniversalUrlCtx(ctx context.Context, url string, opts ...*UniversalUrlOpts) (*Resp, error)
- func (c *EcommerceClient) ScrapeWayfairSearch(query string, opts ...*WayfairSearchOpts) (*Resp, error)
- func (c *EcommerceClient) ScrapeWayfairSearchCtx(ctx context.Context, query string, opts ...*WayfairSearchOpts) (*Resp, error)
- func (c *EcommerceClient) ScrapeWayfairUrl(url string, opts ...*WayfairUrlOpts) (*Resp, error)
- func (c *EcommerceClient) ScrapeWayfairUrlCtx(ctx context.Context, url string, opts ...*WayfairUrlOpts) (*Resp, error)
- type EcommerceClientAsync
- func (c *EcommerceClientAsync) ScrapeAmazonBestsellers(query string, opts ...*AmazonBestsellersOpts) (chan *Resp, error)
- func (c *EcommerceClientAsync) ScrapeAmazonBestsellersCtx(ctx context.Context, query string, opts ...*AmazonBestsellersOpts) (chan *Resp, error)
- func (c *EcommerceClientAsync) ScrapeAmazonPricing(query string, opts ...*AmazonPricingOpts) (chan *Resp, error)
- func (c *EcommerceClientAsync) ScrapeAmazonPricingCtx(ctx context.Context, query string, opts ...*AmazonPricingOpts) (chan *Resp, error)
- func (c *EcommerceClientAsync) ScrapeAmazonProduct(query string, opts ...*AmazonProductOpts) (chan *Resp, error)
- func (c *EcommerceClientAsync) ScrapeAmazonProductCtx(ctx context.Context, query string, opts ...*AmazonProductOpts) (chan *Resp, error)
- func (c *EcommerceClientAsync) ScrapeAmazonQuestions(query string, opts ...*AmazonQuestionsOpts) (chan *Resp, error)
- func (c *EcommerceClientAsync) ScrapeAmazonQuestionsCtx(ctx context.Context, query string, opts ...*AmazonQuestionsOpts) (chan *Resp, error)
- func (c *EcommerceClientAsync) ScrapeAmazonReviews(query string, opts ...*AmazonReviewsOpts) (chan *Resp, error)
- func (c *EcommerceClientAsync) ScrapeAmazonReviewsCtx(ctx context.Context, query string, opts ...*AmazonReviewsOpts) (chan *Resp, error)
- func (c *EcommerceClientAsync) ScrapeAmazonSearch(query string, opts ...*AmazonSearchOpts) (chan *Resp, error)
- func (c *EcommerceClientAsync) ScrapeAmazonSearchCtx(ctx context.Context, query string, opts ...*AmazonSearchOpts) (chan *Resp, error)
- func (c *EcommerceClientAsync) ScrapeAmazonSellers(query string, opts ...*AmazonSellersOpts) (chan *Resp, error)
- func (c *EcommerceClientAsync) ScrapeAmazonSellersCtx(ctx context.Context, query string, opts ...*AmazonSellersOpts) (chan *Resp, error)
- func (c *EcommerceClientAsync) ScrapeAmazonUrl(url string, opts ...*AmazonUrlOpts) (chan *Resp, error)
- func (c *EcommerceClientAsync) ScrapeAmazonUrlCtx(ctx context.Context, url string, opts ...*AmazonUrlOpts) (chan *Resp, error)
- func (c *EcommerceClientAsync) ScrapeGoogleShoppingPricing(query string, opts ...*GoogleShoppingPricingOpts) (chan *Resp, error)
- func (c *EcommerceClientAsync) ScrapeGoogleShoppingPricingCtx(ctx context.Context, query string, opts ...*GoogleShoppingPricingOpts) (chan *Resp, error)
- func (c *EcommerceClientAsync) ScrapeGoogleShoppingProduct(query string, opts ...*GoogleShoppingProductOpts) (chan *Resp, error)
- func (c *EcommerceClientAsync) ScrapeGoogleShoppingProductCtx(ctx context.Context, query string, opts ...*GoogleShoppingProductOpts) (chan *Resp, error)
- func (c *EcommerceClientAsync) ScrapeGoogleShoppingSearch(query string, opts ...*GoogleShoppingSearchOpts) (chan *Resp, error)
- func (c *EcommerceClientAsync) ScrapeGoogleShoppingSearchCtx(ctx context.Context, query string, opts ...*GoogleShoppingSearchOpts) (chan *Resp, error)
- func (c *EcommerceClientAsync) ScrapeGoogleShoppingUrl(url string, opts ...*GoogleShoppingUrlOpts) (chan *Resp, error)
- func (c *EcommerceClientAsync) ScrapeGoogleShoppingUrlCtx(ctx context.Context, url string, opts ...*GoogleShoppingUrlOpts) (chan *Resp, error)
- func (c *EcommerceClientAsync) ScrapeUniversalUrl(url string, opts ...*UniversalUrlOpts) (chan *Resp, error)
- func (c *EcommerceClientAsync) ScrapeUniversalUrlCtx(ctx context.Context, url string, opts ...*UniversalUrlOpts) (chan *Resp, error)
- func (c *EcommerceClientAsync) ScrapeWayfairSearch(query string, opts ...*WayfairSearchOpts) (chan *Resp, error)
- func (c *EcommerceClientAsync) ScrapeWayfairSearchCtx(ctx context.Context, query string, opts ...*WayfairSearchOpts) (chan *Resp, error)
- func (c *EcommerceClientAsync) ScrapeWayfairUrl(url string, opts ...*WayfairUrlOpts) (chan *Resp, error)
- func (c *EcommerceClientAsync) ScrapeWayfairUrlCtx(ctx context.Context, url string, opts ...*WayfairUrlOpts) (chan *Resp, error)
- type Expanded
- type FeedbackSummaryTable
- type Filters
- type GoogleShoppingPricingOpts
- type GoogleShoppingProductOpts
- type GoogleShoppingSearchOpts
- type GoogleShoppingUrlOpts
- type Inline
- type InstantRecommendations
- type Job
- type Organic
- type Paid
- type PaidSitelinks
- type Pricing
- type ProductDetails
- type RecentFeedback
- type RelatedItems
- type Resp
- type Result
- type Results
- type SearchInformation
- type Specifications
- type SuggestedAmazonSearch
- type UniversalUrlOpts
- type Variants
- type Variations
- type WayfairSearchOpts
- type WayfairUrlOpts
Constants ¶
This section is empty.
Variables ¶
var AcceptedSortByParameters = []string{
"r",
"p",
"rv",
"pd",
}
Accepted parameters for context options in google shopping.
Functions ¶
This section is empty.
Types ¶
type AmazonBestsellersOpts ¶
type AmazonBestsellersOpts struct { Domain oxylabs.Domain StartPage int Pages int GeoLocation string UserAgent oxylabs.UserAgent Render oxylabs.Render CallbackUrl string Parse bool ParseInstructions *map[string]interface{} PollInterval time.Duration }
AmazonBestsellersOpts contains all the query parameters available for amazon_bestsellers.
type AmazonChoices ¶
type AmazonChoices struct { Url string `json:"url"` Asin string `json:"asin"` Price float64 `json:"price"` Title string `json:"title"` Rating float64 `json:"rating"` Currency string `json:"currency"` UrlImage string `json:"url_image"` BestSeller bool `json:"best_seller"` PriceUpper float64 `json:"price_upper"` IsSponsored bool `json:"is_sponsored"` Manufacturer string `json:"manufacturer"` PricingCount int `json:"pricing_count"` ReviewsCount int `json:"reviews_count"` IsAmazonsChoice bool `json:"is_amazons_choice"` Pos int `json:"pos"` IsPrime bool `json:"is_prime"` ShippingInformation string `json:"shipping_information"` SalesVolume string `json:"sales_volume"` NoPriceReason string `json:"no_price_reason"` Variations []Variations `json:"variations"` }
type AmazonPricingOpts ¶
type AmazonPricingOpts struct { Domain oxylabs.Domain StartPage int Pages int GeoLocation string UserAgent oxylabs.UserAgent Render oxylabs.Render CallbackUrl string Parse bool ParseInstructions *map[string]interface{} PollInterval time.Duration }
AmazonPricingOpts contains all the query parameters available for amazon_pricing.
type AmazonProductAds ¶
type AmazonProductAds struct { Pos int `json:"pos"` Asin string `json:"asin"` Type string `json:"type"` Price float64 `json:"price"` Title string `json:"title"` Images []string `json:"images"` Rating float64 `json:"rating"` Location string `json:"location"` PriceUpper float64 `json:"price_upper"` ReviewsCount int `json:"reviews_count"` IsPrimeEligible bool `json:"is_prime_eligible"` }
type AmazonProductCategory ¶
type AmazonProductDelivery ¶
type AmazonProductOpts ¶
type AmazonProductOpts struct { Domain oxylabs.Domain GeoLocation string UserAgent oxylabs.UserAgent Render oxylabs.Render CallbackUrl string Parse bool ParseInstructions *map[string]interface{} Context []func(oxylabs.ContextOption) PollInterval time.Duration }
AmazonProductOpts contains all the query parameters available for amazon_product.
type AmazonProductSalesRank ¶
type AmazonQuestions ¶
type AmazonQuestionsOpts ¶
type AmazonQuestionsOpts struct { Domain oxylabs.Domain GeoLocation string UserAgent oxylabs.UserAgent Render oxylabs.Render CallbackUrl string Parse bool ParseInstructions *map[string]interface{} PollInterval time.Duration }
AmazonQuestionsOpts contains all the query parameters available for amazon_questions.
type AmazonReviews ¶
type AmazonReviewsOpts ¶
type AmazonReviewsOpts struct { Domain oxylabs.Domain GeoLocation string UserAgent oxylabs.UserAgent StartPage int Pages int Render oxylabs.Render CallbackUrl string Parse bool ParseInstructions *map[string]interface{} PollInterval time.Duration }
AmazonReviewsOpts contains all the query parameters available for amazon_reviews.
type AmazonSearchOpts ¶
type AmazonSearchOpts struct { Domain oxylabs.Domain StartPage int Pages int GeoLocation string UserAgent oxylabs.UserAgent Render oxylabs.Render CallbackUrl string Parse bool ParseInstructions *map[string]interface{} Context []func(oxylabs.ContextOption) PollInterval time.Duration }
AmazonSearchOpts contains all the query parameters available for amazon_search.
type AmazonSellersOpts ¶
type AmazonSellersOpts struct { Domain oxylabs.Domain GeoLocation string UserAgent oxylabs.UserAgent Render oxylabs.Render CallbackUrl string Parse bool ParseInstructions *map[string]interface{} PollInterval time.Duration }
AmazonSellersOpts contains all the query parameters available for amazon_seller.
type AmazonUrlOpts ¶
type AmazonUrlOpts struct { UserAgent oxylabs.UserAgent Render oxylabs.Render CallbackUrl string Parse bool ParseInstructions *map[string]interface{} PollInterval time.Duration }
AmazonUrlOpts contains all the query parameters available for amazon.
type Content ¶
type Content struct { Url string `json:"url"` Title string `json:"title"` Pages int `json:"pages"` Query string `json:"query"` Images interface{} `json:"images"` Variants Variants `json:"variants"` Highlights []string `json:"highlights"` Description string `json:"description"` RelatedItems RelatedItems `json:"related_items"` Specifications Specifications `json:"specifications"` Page int `json:"page"` Errors interface{} `json:"_errors"` Results Result `json:"results"` Rating float64 `json:"rating"` Pricing []Pricing `json:"pricing"` Ads []AmazonProductAds `json:"ads"` Asin string `json:"asin"` Price float64 `json:"price"` Stock string `json:"stock"` Coupon string `json:"coupon"` Category []AmazonProductCategory `json:"category"` Currency string `json:"currency"` Delivery []AmazonProductDelivery `json:"delivery"` Warnings []string `json:"_warnings,omitempty"` DealType string `json:"deal_type"` PageType string `json:"page_type"` PriceSns int `json:"price_sns"` Variation interface{} `json:"variation"` HasVideos bool `json:"has_videos"` SalesRank []AmazonProductSalesRank `json:"sales_rank"` TopReview string `json:"top_review"` AsinInUrl string `json:"asin_in_url"` PriceUpper float64 `json:"price_upper"` PricingStr string `json:"pricing_str"` PricingURL string `json:"pricing_url"` DiscountEnd string `json:"discount_end"` Manufacturer string `json:"manufacturer"` MaxQuantity int `json:"max_quantity"` PriceBuybox float64 `json:"price_buybox"` ProductName string `json:"product_name"` BulletPoints string `json:"bullet_points"` IsAddonItem bool `json:"is_addon_item"` PriceInitial int `json:"price_initial"` PricingCount int `json:"pricing_count"` ReviewsCount int `json:"reviews_count"` SNSDiscounts []interface{} `json:"sns_discounts"` DeveloperInfo []interface{} `json:"developer_info"` LightningDeal interface{} `json:"lightning_deal"` PriceShipping int `json:"price_shipping"` IsPrimePantry bool `json:"is_prime_pantry"` ProductDetails ProductDetails `json:"product_details"` FeaturedMerchant []interface{} `json:"featured_merchant"` IsPrimeEligible bool `json:"is_prime_eligible"` ProductDimensions string `json:"product_dimensions"` RefurbishedProduct AmazonRefurbishedProduct `json:"refurbished_product"` AnsweredQuestionsCount int `json:"answered_questions_count"` RatingStarDistribution []AmazonRatingStarDistribution `json:"rating_star_distribution"` Reviews []AmazonReviews `json:"reviews"` Questions AmazonQuestions `json:"questions"` QuestionsTotal int `json:"questions_total"` BusinessName string `json:"business_name"` RecentFeedback []RecentFeedback `json:"recent_feedback"` BusinessAddress string `json:"business_address"` FeedbackSummaryTable FeedbackSummaryTable `json:"feedback_summary_table"` ReviewCount int `json:"review_count"` LastVisiblePage int `json:"last_visible_page"` ParseStatusCode int `json:"parse_status_code"` }
type EcommerceClient ¶
func Init ¶
func Init( username string, password string, ) *EcommerceClient
Init for Sync runtime model.
func (*EcommerceClient) ScrapeAmazonBestsellers ¶
func (c *EcommerceClient) ScrapeAmazonBestsellers( query string, opts ...*AmazonBestsellersOpts, ) (*Resp, error)
ScrapeAmazonBestsellers scrapes amazon via Oxylabs E-Commerce API with amazon_bestsellers as source.
func (*EcommerceClient) ScrapeAmazonBestsellersCtx ¶
func (c *EcommerceClient) ScrapeAmazonBestsellersCtx( ctx context.Context, query string, opts ...*AmazonBestsellersOpts, ) (*Resp, error)
ScrapeAmazonBestsellersCtx scrapes amazon via Oxylabs E-Commerce API with amazon_bestsellers as source. The provided context allows customization of the HTTP req, including setting timeouts.
func (*EcommerceClient) ScrapeAmazonPricing ¶
func (c *EcommerceClient) ScrapeAmazonPricing( query string, opts ...*AmazonPricingOpts, ) (*Resp, error)
ScrapeAmazonPricing scrapes amazon via Oxylabs E-Commerce API with amazon_pricing as source.
func (*EcommerceClient) ScrapeAmazonPricingCtx ¶
func (c *EcommerceClient) ScrapeAmazonPricingCtx( ctx context.Context, query string, opts ...*AmazonPricingOpts, ) (*Resp, error)
ScrapeAmazonPricingCtx scrapes amazon via Oxylabs E-Commerce API with amazon_pricing as source. The provided context allows customization of the HTTP req, including setting timeouts.
func (*EcommerceClient) ScrapeAmazonProduct ¶
func (c *EcommerceClient) ScrapeAmazonProduct( query string, opts ...*AmazonProductOpts, ) (*Resp, error)
ScrapeAmazonProduct scrapes amazon via Oxylabs E-Commerce API with amazon_product as source.
func (*EcommerceClient) ScrapeAmazonProductCtx ¶
func (c *EcommerceClient) ScrapeAmazonProductCtx( ctx context.Context, query string, opts ...*AmazonProductOpts, ) (*Resp, error)
ScrapeAmazonProductCtx scrapes amazon via Oxylabs E-Commerce API with amazon_product as source. The provided context allows customization of the HTTP req, including setting timeouts.
func (*EcommerceClient) ScrapeAmazonQuestions ¶
func (c *EcommerceClient) ScrapeAmazonQuestions( query string, opts ...*AmazonQuestionsOpts, ) (*Resp, error)
ScrapeAmazonQuestions scrapes amazon via Oxylabs E-Commerce API with amazon_questions as source.
func (*EcommerceClient) ScrapeAmazonQuestionsCtx ¶
func (c *EcommerceClient) ScrapeAmazonQuestionsCtx( ctx context.Context, query string, opts ...*AmazonQuestionsOpts, ) (*Resp, error)
ScrapeAmazonQuestionsCtx scrapes amazon via Oxylabs E-Commerce API with amazon_questions as source. The provided context allows customization of the HTTP req, including setting timeouts.
func (*EcommerceClient) ScrapeAmazonReviews ¶
func (c *EcommerceClient) ScrapeAmazonReviews( query string, opts ...*AmazonReviewsOpts, ) (*Resp, error)
ScrapeAmazonReviews scrapes amazon via Oxylabs E-Commerce API with amazon_reviews as source.
func (*EcommerceClient) ScrapeAmazonReviewsCtx ¶
func (c *EcommerceClient) ScrapeAmazonReviewsCtx( ctx context.Context, query string, opts ...*AmazonReviewsOpts, ) (*Resp, error)
ScrapeAmazonReviewsCtx scrapes amazon via Oxylabs E-Commerce API with amazon_reviews as source. The provided context allows customization of the HTTP req, including setting timeouts.
func (*EcommerceClient) ScrapeAmazonSearch ¶
func (c *EcommerceClient) ScrapeAmazonSearch( query string, opts ...*AmazonSearchOpts, ) (*Resp, error)
ScrapeAmazonSearch scrapes amazon via Oxylabs E-Commerce API with amazon_search as source.
func (*EcommerceClient) ScrapeAmazonSearchCtx ¶
func (c *EcommerceClient) ScrapeAmazonSearchCtx( ctx context.Context, query string, opts ...*AmazonSearchOpts, ) (*Resp, error)
ScrapeAmazonSearchCtx scrapes amazon via Oxylabs E-Commerce API with amazon_search as source. The provided context allows customization of the HTTP req, including setting timeouts.
func (*EcommerceClient) ScrapeAmazonSellers ¶
func (c *EcommerceClient) ScrapeAmazonSellers( query string, opts ...*AmazonSellersOpts, ) (*Resp, error)
ScrapeAmazonSellers scrapes amazon via Oxylabs E-Commerce API with amazon_seller as source.
func (*EcommerceClient) ScrapeAmazonSellersCtx ¶
func (c *EcommerceClient) ScrapeAmazonSellersCtx( ctx context.Context, query string, opts ...*AmazonSellersOpts, ) (*Resp, error)
ScrapeAmazonSellerCtx scrapes amazon via Oxylabs E-Commerce API with amazon_seller as source. The provided context allows customization of the HTTP req, including setting timeouts.
func (*EcommerceClient) ScrapeAmazonUrl ¶
func (c *EcommerceClient) ScrapeAmazonUrl( url string, opts ...*AmazonUrlOpts, ) (*Resp, error)
ScrapeAmazonUrl scrapes amazon via Oxylabs E-Commerce API with amazon as source.
func (*EcommerceClient) ScrapeAmazonUrlCtx ¶
func (c *EcommerceClient) ScrapeAmazonUrlCtx( ctx context.Context, url string, opts ...*AmazonUrlOpts, ) (*Resp, error)
ScrapeAmazonUrlCtx scrapes amazon via Oxylabs E-Commerce API with amazon as source. The provided context allows customization of the HTTP req, including setting timeouts.
func (*EcommerceClient) ScrapeGoogleShoppingPricing ¶
func (c *EcommerceClient) ScrapeGoogleShoppingPricing( query string, opts ...*GoogleShoppingPricingOpts, ) (*Resp, error)
ScrapeGoogleShoppingPricing scrapes google shopping via Oxylabs E-Commerce API with google_shopping_pricing as source.
func (*EcommerceClient) ScrapeGoogleShoppingPricingCtx ¶
func (c *EcommerceClient) ScrapeGoogleShoppingPricingCtx( ctx context.Context, query string, opts ...*GoogleShoppingPricingOpts, ) (*Resp, error)
ScrapeGoogleShoppingPricingCtx scrapes google shopping via Oxylabs E-Commerce API with google_shopping_pricing as source. The provided context allows customization of the HTTP req, including setting timeouts.
func (*EcommerceClient) ScrapeGoogleShoppingProduct ¶
func (c *EcommerceClient) ScrapeGoogleShoppingProduct( query string, opts ...*GoogleShoppingProductOpts, ) (*Resp, error)
ScrapeGoogleShoppingProduct scrapes google shopping via Oxylabs E-Commerce API with google_shopping_product as source.
func (*EcommerceClient) ScrapeGoogleShoppingProductCtx ¶
func (c *EcommerceClient) ScrapeGoogleShoppingProductCtx( ctx context.Context, query string, opts ...*GoogleShoppingProductOpts, ) (*Resp, error)
ScrapeGoogleShoppingProductCtx scrapes google shopping via Oxylabs E-Commerce API with google_shopping_product as source. The provided context allows customization of the HTTP req, including setting timeouts.
func (*EcommerceClient) ScrapeGoogleShoppingSearch ¶
func (c *EcommerceClient) ScrapeGoogleShoppingSearch( query string, opts ...*GoogleShoppingSearchOpts, ) (*Resp, error)
ScrapeGoogleShoppingSearch scrapes google shopping via Oxylabs E-Commerce API with google_shopping_search as source.
func (*EcommerceClient) ScrapeGoogleShoppingSearchCtx ¶
func (c *EcommerceClient) ScrapeGoogleShoppingSearchCtx( ctx context.Context, query string, opts ...*GoogleShoppingSearchOpts, ) (*Resp, error)
ScrapeGoogleShoppingSearchCtx scrapes google shopping via Oxylabs E-Commerce API with google_shopping_search as source. The provided context allows customization of the HTTP req, including setting timeouts.
func (*EcommerceClient) ScrapeGoogleShoppingUrl ¶
func (c *EcommerceClient) ScrapeGoogleShoppingUrl( url string, opts ...*GoogleShoppingUrlOpts, ) (*Resp, error)
ScrapeGoogleShoppingUrl scrapes google shopping via Oxylabs E-Commerce API with google_shopping as source.
func (*EcommerceClient) ScrapeGoogleShoppingUrlCtx ¶
func (c *EcommerceClient) ScrapeGoogleShoppingUrlCtx( ctx context.Context, url string, opts ...*GoogleShoppingUrlOpts, ) (*Resp, error)
ScrapeGoogleShoppingUrlCtx scrapes google shopping via Oxylabs E-Commerce API with google_shopping as source. The provided context allows customization of the HTTP req, including setting timeouts.
func (*EcommerceClient) ScrapeUniversalUrl ¶
func (c *EcommerceClient) ScrapeUniversalUrl( url string, opts ...*UniversalUrlOpts, ) (*Resp, error)
ScrapeUniversalUrl scrapes all urls via Oxylabs E-Commerce API with universal_ecommerce as source.
func (*EcommerceClient) ScrapeUniversalUrlCtx ¶
func (c *EcommerceClient) ScrapeUniversalUrlCtx( ctx context.Context, url string, opts ...*UniversalUrlOpts, ) (*Resp, error)
ScrapeUniversalUrlCtx scrapes all urls via Oxylabs E-Commerce API with universal_ecommerce as source. The provided context allows customization of the HTTP req, including setting timeouts.
func (*EcommerceClient) ScrapeWayfairSearch ¶
func (c *EcommerceClient) ScrapeWayfairSearch( query string, opts ...*WayfairSearchOpts, ) (*Resp, error)
ScrapeWayfairSearch scrapes wayfair via Oxylabs E-Commerce API with wayfair_search as source.
func (*EcommerceClient) ScrapeWayfairSearchCtx ¶
func (c *EcommerceClient) ScrapeWayfairSearchCtx( ctx context.Context, query string, opts ...*WayfairSearchOpts, ) (*Resp, error)
ScrapeWayfairSearchCtx scrapes wayfair via Oxylabs E-Commerce API with wayfair_search as source. The provided context allows customization of the HTTP req, including setting timeouts.
func (*EcommerceClient) ScrapeWayfairUrl ¶
func (c *EcommerceClient) ScrapeWayfairUrl( url string, opts ...*WayfairUrlOpts, ) (*Resp, error)
ScrapeWayfairUrl scrapes wayfair via Oxylabs E-Commerce API with wayfair as source.
func (*EcommerceClient) ScrapeWayfairUrlCtx ¶
func (c *EcommerceClient) ScrapeWayfairUrlCtx( ctx context.Context, url string, opts ...*WayfairUrlOpts, ) (*Resp, error)
ScrapeWayfairUrlCtx scrapes wayfair via Oxylabs E-Commerce API with wayfair as source. The provided context allows customization of the HTTP req, including setting timeouts.
type EcommerceClientAsync ¶
func InitAsync ¶
func InitAsync( username string, password string, ) *EcommerceClientAsync
Init for Async runtime model.
func (*EcommerceClientAsync) ScrapeAmazonBestsellers ¶
func (c *EcommerceClientAsync) ScrapeAmazonBestsellers( query string, opts ...*AmazonBestsellersOpts, ) (chan *Resp, error)
ScrapeAmazonBestSellers scrapes amazon via Oxylabs E-Commerce API with amazon_bestsellers as source.
func (*EcommerceClientAsync) ScrapeAmazonBestsellersCtx ¶
func (c *EcommerceClientAsync) ScrapeAmazonBestsellersCtx( ctx context.Context, query string, opts ...*AmazonBestsellersOpts, ) (chan *Resp, error)
ScrapeAmazonBestsellersCtx scrapes amazon via Oxylabs E-Commerce API with amazon_bestsellers as source. The provided context allows customization of the HTTP req, including setting timeouts.
func (*EcommerceClientAsync) ScrapeAmazonPricing ¶
func (c *EcommerceClientAsync) ScrapeAmazonPricing( query string, opts ...*AmazonPricingOpts, ) (chan *Resp, error)
ScrapeAmazonPricing scrapes amazon via Oxylabs E-Commerce API with amazon_pricing as source.
func (*EcommerceClientAsync) ScrapeAmazonPricingCtx ¶
func (c *EcommerceClientAsync) ScrapeAmazonPricingCtx( ctx context.Context, query string, opts ...*AmazonPricingOpts, ) (chan *Resp, error)
ScrapeAmazonPricingCtx scrapes amazon via Oxylabs E-Commerce API with amazon_pricing as source. The provided context allows customization of the HTTP req, including setting timeouts.
func (*EcommerceClientAsync) ScrapeAmazonProduct ¶
func (c *EcommerceClientAsync) ScrapeAmazonProduct( query string, opts ...*AmazonProductOpts, ) (chan *Resp, error)
ScrapeAmazonProduct scrapes amazon via Oxylabs E-Commerce API with amazon_product as source.
func (*EcommerceClientAsync) ScrapeAmazonProductCtx ¶
func (c *EcommerceClientAsync) ScrapeAmazonProductCtx( ctx context.Context, query string, opts ...*AmazonProductOpts, ) (chan *Resp, error)
ScrapeAmazonProductCtx scrapes amazon via Oxylabs E-Commerce API with amazon_product as source. The provided context allows customization of the HTTP req, including setting timeouts.
func (*EcommerceClientAsync) ScrapeAmazonQuestions ¶
func (c *EcommerceClientAsync) ScrapeAmazonQuestions( query string, opts ...*AmazonQuestionsOpts, ) (chan *Resp, error)
ScrapeAmazonQuestions scrapes amazon via Oxylabs E-Commerce API with amazon_questions as source.
func (*EcommerceClientAsync) ScrapeAmazonQuestionsCtx ¶
func (c *EcommerceClientAsync) ScrapeAmazonQuestionsCtx( ctx context.Context, query string, opts ...*AmazonQuestionsOpts, ) (chan *Resp, error)
ScrapeAmazonQuestionsCtx scrapes amazon via Oxylabs E-Commerce API with amazon_questions as source. The provided context allows customization of the HTTP req, including setting timeouts.
func (*EcommerceClientAsync) ScrapeAmazonReviews ¶
func (c *EcommerceClientAsync) ScrapeAmazonReviews( query string, opts ...*AmazonReviewsOpts, ) (chan *Resp, error)
ScrapeAmazonReviews scrapes amazon via Oxylabs E-Commerce API with amazon_reviews as source.
func (*EcommerceClientAsync) ScrapeAmazonReviewsCtx ¶
func (c *EcommerceClientAsync) ScrapeAmazonReviewsCtx( ctx context.Context, query string, opts ...*AmazonReviewsOpts, ) (chan *Resp, error)
ScrapeAmazonReviewsCtx scrapes amazon via Oxylabs E-Commerce API with amazon_reviews as source. The provided context allows customization of the HTTP req, including setting timeouts.
func (*EcommerceClientAsync) ScrapeAmazonSearch ¶
func (c *EcommerceClientAsync) ScrapeAmazonSearch( query string, opts ...*AmazonSearchOpts, ) (chan *Resp, error)
ScrapeAmazonSearch scrapes amazon via Oxylabs E-Commerce API with amazon_search as source.
func (*EcommerceClientAsync) ScrapeAmazonSearchCtx ¶
func (c *EcommerceClientAsync) ScrapeAmazonSearchCtx( ctx context.Context, query string, opts ...*AmazonSearchOpts, ) (chan *Resp, error)
ScrapeAmazonSearchCtx scrapes amazon via Oxylabs E-Commerce API with amazon_search as source. The provided context allows customization of the HTTP req, including setting timeouts.
func (*EcommerceClientAsync) ScrapeAmazonSellers ¶
func (c *EcommerceClientAsync) ScrapeAmazonSellers( query string, opts ...*AmazonSellersOpts, ) (chan *Resp, error)
ScrapeAmazonSellers scrapes amazon via Oxylabs E-Commerce API with amazon_sellers as source.
func (*EcommerceClientAsync) ScrapeAmazonSellersCtx ¶
func (c *EcommerceClientAsync) ScrapeAmazonSellersCtx( ctx context.Context, query string, opts ...*AmazonSellersOpts, ) (chan *Resp, error)
ScrapeAmazonSellersCtx scrapes amazon via Oxylabs E-Commerce API with amazon_sellers as source. The provided context allows customization of the HTTP req, including setting timeouts.
func (*EcommerceClientAsync) ScrapeAmazonUrl ¶
func (c *EcommerceClientAsync) ScrapeAmazonUrl( url string, opts ...*AmazonUrlOpts, ) (chan *Resp, error)
ScrapeAmazonUrl scrapes amazon via Oxylabs E-Commerce API with amazon as source.
func (*EcommerceClientAsync) ScrapeAmazonUrlCtx ¶
func (c *EcommerceClientAsync) ScrapeAmazonUrlCtx( ctx context.Context, url string, opts ...*AmazonUrlOpts, ) (chan *Resp, error)
ScrapeAmazonUrlCtx scrapes amazon via Oxylabs E-Commerce API with amazon as source. The provided context allows customization of the HTTP req, including setting timeouts.
func (*EcommerceClientAsync) ScrapeGoogleShoppingPricing ¶
func (c *EcommerceClientAsync) ScrapeGoogleShoppingPricing( query string, opts ...*GoogleShoppingPricingOpts, ) (chan *Resp, error)
ScrapeGoogleShoppingPricing scrapes google shopping with async polling runtime via Oxylabs E-Commerce API and google_shopping_pricing as source.
func (*EcommerceClientAsync) ScrapeGoogleShoppingPricingCtx ¶
func (c *EcommerceClientAsync) ScrapeGoogleShoppingPricingCtx( ctx context.Context, query string, opts ...*GoogleShoppingPricingOpts, ) (chan *Resp, error)
ScrapeGoogleShoppingPricingCtx scrapes google shopping via Oxylabs E-Commerce API with google_shopping_pricing as source. The provided context allows customization of the HTTP req, including setting timeouts.
func (*EcommerceClientAsync) ScrapeGoogleShoppingProduct ¶
func (c *EcommerceClientAsync) ScrapeGoogleShoppingProduct( query string, opts ...*GoogleShoppingProductOpts, ) (chan *Resp, error)
ScrapeGoogleShoppingProduct scrapes google shopping with async polling runtime via Oxylabs E-Commerce API with google_shopping_product as source.
func (*EcommerceClientAsync) ScrapeGoogleShoppingProductCtx ¶
func (c *EcommerceClientAsync) ScrapeGoogleShoppingProductCtx( ctx context.Context, query string, opts ...*GoogleShoppingProductOpts, ) (chan *Resp, error)
ScrapeGoogleShoppingProductCtx scrapes google shopping with async polling runtime via Oxylabs E-Commerce API and google_shopping_product as source. The provided context allows customization of the HTTP req, including setting timeouts.
func (*EcommerceClientAsync) ScrapeGoogleShoppingSearch ¶
func (c *EcommerceClientAsync) ScrapeGoogleShoppingSearch( query string, opts ...*GoogleShoppingSearchOpts, ) (chan *Resp, error)
ScrapeGoogleShoppingSearch scrapes google shopping with async polling runtime via Oxylabs E-Commerce API and google_shopping_search as source.
func (*EcommerceClientAsync) ScrapeGoogleShoppingSearchCtx ¶
func (c *EcommerceClientAsync) ScrapeGoogleShoppingSearchCtx( ctx context.Context, query string, opts ...*GoogleShoppingSearchOpts, ) (chan *Resp, error)
ScrapeGoogleShoppingSearchCtx scrapes google shopping with async polling runtime via Oxylabs E-Commerce API and google_shopping_search as source. The provided context allows customization of the HTTP req, including setting timeouts.
func (*EcommerceClientAsync) ScrapeGoogleShoppingUrl ¶
func (c *EcommerceClientAsync) ScrapeGoogleShoppingUrl( url string, opts ...*GoogleShoppingUrlOpts, ) (chan *Resp, error)
ScrapeGoogleShoppingUrl scrapes google shopping with async polling runtime via Oxylabs E-Commerce API and google_shopping as source.
func (*EcommerceClientAsync) ScrapeGoogleShoppingUrlCtx ¶
func (c *EcommerceClientAsync) ScrapeGoogleShoppingUrlCtx( ctx context.Context, url string, opts ...*GoogleShoppingUrlOpts, ) (chan *Resp, error)
ScrapeGoogleShoppingUrlCtx scrapes google shopping with async polling runtime via Oxylabs E-Commerce API and google_shopping as source. The provided context allows customization of the HTTP req, including setting timeouts.
func (*EcommerceClientAsync) ScrapeUniversalUrl ¶
func (c *EcommerceClientAsync) ScrapeUniversalUrl( url string, opts ...*UniversalUrlOpts, ) (chan *Resp, error)
ScrapeUniversalUrl scrapes all urls with async polling runtime via Oxylabs E-Commerce API and universal as source.
func (*EcommerceClientAsync) ScrapeUniversalUrlCtx ¶
func (c *EcommerceClientAsync) ScrapeUniversalUrlCtx( ctx context.Context, url string, opts ...*UniversalUrlOpts, ) (chan *Resp, error)
ScrapeUniversalUrlCtx scrapes all urls with async polling runtime via Oxylabs E-Commerce API and universal as source. The provided context allows customization of the HTTP req, including setting timeouts.
func (*EcommerceClientAsync) ScrapeWayfairSearch ¶
func (c *EcommerceClientAsync) ScrapeWayfairSearch( query string, opts ...*WayfairSearchOpts, ) (chan *Resp, error)
ScrapeWayfairSearch scrapes wayfair with async polling runtime via Oxylabs E-Commerce API and wayfair_search as source.
func (*EcommerceClientAsync) ScrapeWayfairSearchCtx ¶
func (c *EcommerceClientAsync) ScrapeWayfairSearchCtx( ctx context.Context, query string, opts ...*WayfairSearchOpts, ) (chan *Resp, error)
ScrapeWayfairSearchCtx scrapes wayfair with async polling runtime via Oxylabs E-Commerce API and wayfair_search as source. The provided context allows customization of the HTTP req, including setting timeouts.
func (*EcommerceClientAsync) ScrapeWayfairUrl ¶
func (c *EcommerceClientAsync) ScrapeWayfairUrl( url string, opts ...*WayfairUrlOpts, ) (chan *Resp, error)
ScrapeWayfairUrl scrapes wayfair with async polling runtime via Oxylabs E-Commerce API and wayfair as source.
func (*EcommerceClientAsync) ScrapeWayfairUrlCtx ¶
func (c *EcommerceClientAsync) ScrapeWayfairUrlCtx( ctx context.Context, url string, opts ...*WayfairUrlOpts, ) (chan *Resp, error)
ScrapeWayfairUrlCtx scrapes wayfair with async polling runtime via Oxylabs E-Commerce API and wayfair as source. The provided context allows customization of the HTTP req, including setting timeouts.
type FeedbackSummaryTable ¶
type FeedbackSummaryTable struct { Counts struct { ThirtyDays int `json:"30_days"` NinetyDays int `json:"90_days"` AllTime int `json:"all_time"` TwelveMonths int `json:"12_months"` } `json:"counts"` Neutral struct { ThirtyDays string `json:"30_days"` NinetyDays string `json:"90_days"` AllTime string `json:"all_time"` TwelveMonths string `json:"12_months"` } `json:"neutral"` Negative struct { ThirtyDays string `json:"30_days"` NinetyDays string `json:"90_days"` AllTime string `json:"all_time"` TwelveMonths string `json:"12_months"` } `json:"negative"` Positive struct { ThirtyDays string `json:"30_days"` NinetyDays string `json:"90_days"` AllTime string `json:"all_time"` TwelveMonths string `json:"12_months"` } `json:"positive"` }
type GoogleShoppingPricingOpts ¶
type GoogleShoppingPricingOpts struct { Domain oxylabs.Domain StartPage int Pages int Locale oxylabs.Locale ResultsLanguage string GeoLocation string UserAgent oxylabs.UserAgent Render oxylabs.Render CallbackURL string Parse bool ParseInstructions *map[string]interface{} PollInterval time.Duration }
GoogleShoppingPricingOpts contains all the query parameters available for google shopping pricing.
type GoogleShoppingProductOpts ¶
type GoogleShoppingProductOpts struct { Domain oxylabs.Domain Locale oxylabs.Locale ResultsLanguage string GeoLocation string UserAgent oxylabs.UserAgent Render oxylabs.Render CallbackURL string Parse bool ParseInstructions *map[string]interface{} PollInterval time.Duration }
GoogleShoppingProductOpts contains all the query parameters available for google shopping product.
type GoogleShoppingSearchOpts ¶
type GoogleShoppingSearchOpts struct { Domain oxylabs.Domain StartPage int Pages int Locale oxylabs.Locale ResultsLanguage string GeoLocation string UserAgent oxylabs.UserAgent Render oxylabs.Render CallbackURL string Parse bool ParseInstructions *map[string]interface{} PollInterval time.Duration Context []func(oxylabs.ContextOption) }
GoogleShoppingSearchOpts contains all the query parameters available for google shopping search.
type GoogleShoppingUrlOpts ¶
type GoogleShoppingUrlOpts struct { UserAgent oxylabs.UserAgent Render oxylabs.Render CallbackUrl string GeoLocation string Parse bool ParseInstructions *map[string]interface{} PollInterval time.Duration }
GoogleShoppingUrlOpts contains all the query parameters available for google shopping.
type InstantRecommendations ¶
type InstantRecommendations struct { Url string `json:"url"` Asin string `json:"asin"` Price float64 `json:"price"` Title string `json:"title"` Rating float64 `json:"rating"` Currency string `json:"currency"` UrlImage string `json:"url_image"` BestSeller bool `json:"best_seller"` PriceUpper float64 `json:"price_upper"` IsSponsored bool `json:"is_sponsored"` Manufacturer string `json:"manufacturer"` PricingCount int `json:"pricing_count"` ReviewsCount int `json:"reviews_count"` IsAmazonsChoice bool `json:"is_amazons_choice"` Pos int `json:"pos"` SalesVolume string `json:"sales_volume"` NoPriceReason string `json:"no_price_reason"` }
type Job ¶
type Job struct { CallbackUrl string `json:"callback_url"` ClientID int `json:"client_id"` Context []struct { Key string `json:"key"` Value interface{} `json:"value"` } `json:"context,omitempty"` CreatedAt string `json:"created_at"` Domain string `json:"domain"` GeoLocation interface{} `json:"geo_location"` ID string `json:"id"` Limit int `json:"limit"` Locale interface{} `json:"locale"` Pages int `json:"pages"` Parse bool `json:"parse"` ParserType interface{} `json:"parser_type"` ParsingInstructions interface{} `json:"parsing_instructions"` BrowserInstructions interface{} `json:"browser_instructions"` Render interface{} `json:"render"` Url interface{} `json:"url"` Query string `json:"query"` Source string `json:"source"` StartPage int `json:"start_page"` Status string `json:"status"` StorageType interface{} `json:"storage_type"` StorageUrl interface{} `json:"storage_url"` Subdomain string `json:"subdomain"` ContentEncoding string `json:"content_encoding"` UpdatedAt string `json:"updated_at"` UserAgentType string `json:"user_agent_type"` SessionInfo interface{} `json:"session_info"` Statuses []interface{} `json:"statuses"` ClientNotes interface{} `json:"client_notes"` Links []struct { Rel string `json:"rel"` Href string `json:"href"` Method string `json:"method"` } `json:"_links,omitempty"` }
type Organic ¶
type Organic struct { Pos int `json:"pos"` Url string `json:"url"` Type string `json:"type"` Price float64 `json:"price"` Title string `json:"title"` Currency string `json:"currency"` Merchant struct { Url string `json:"url"` Name string `json:"name"` } `json:"merchant"` PriceStr string `json:"price_str"` ProductId string `json:"product_id"` Asin string `json:"asin"` Rating float64 `json:"rating"` UrlImage string `json:"url_image"` BestSeller bool `json:"best_seller"` PriceUpper float64 `json:"price_upper"` IsSponsored bool `json:"is_sponsored"` Manufacturer string `json:"manufacturer"` PricingCount int `json:"pricing_count"` ReviewsCount int `json:"reviews_count"` IsAmazonsChoice bool `json:"is_amazons_choice"` NoPriceReason string `json:"no_price_reason"` IsPrime bool `json:"is_prime"` SalesVolume string `json:"sales_volume"` Variations []Variations `json:"variations"` PosOVerall int `json:"pos_overall"` }
type Paid ¶
type Paid struct { Pos int `json:"pos"` Url string `json:"url"` Desc string `json:"desc"` Title string `json:"title"` DataRw string `json:"data_rw"` DataPcu []string `json:"data_pcu"` Sitelinks PaidSitelinks `json:"sitelinks"` UrlShown string `json:"url_shown"` Asin string `json:"asin"` Price float64 `json:"price"` Rating float64 `json:"rating"` RelPos int `json:"rel_pos"` Currency string `json:"currency"` UrlImage string `json:"url_image"` BestSeller bool `json:"best_seller"` PriceUpper float64 `json:"price_upper"` IsSponsored bool `json:"is_sponsored"` Manufacturer string `json:"manufacturer"` PricingCount int `json:"pricing_count"` ReviewsCount int `json:"reviews_count"` IsAmazonsChoice bool `json:"is_amazons_choice"` NoPriceReason string `json:"no_price_reason"` SalesVolume string `json:"sales_volume"` IsPrime bool `json:"is_prime"` ShippingInformation string `json:"shipping_information"` PosOverall int `json:"pos_overall"` }
type PaidSitelinks ¶
type Pricing ¶
type Pricing struct { Price float64 `json:"price"` Seller string `json:"seller"` Details string `json:"details"` Currency string `json:"currency"` Condition string `json:"condition"` PriceTax float64 `json:"price_tax"` PriceTotal float64 `json:"price_total"` SellerLink string `json:"seller_link"` PriceShipping float64 `json:"price_shipping"` Delivery string `json:"delivery"` SellerId string `json:"seller_id"` RatingCount int `json:"rating_count"` DeliveryOptions interface{} `json:"delivery_options"` }
type ProductDetails ¶
type ProductDetails struct { Asin string `json:"asin"` Batteries string `json:"batteries"` ItemWeight string `json:"item_weight"` Manufacturer string `json:"manufacturer"` CustomerReviews string `json:"customer_reviews"` BestSellersRank string `json:"best_sellers_rank"` CountryOfOrigin string `json:"country_of_origin"` ItemModelNumber string `json:"item_model_number"` ProductDimensions string `json:"product_dimensions"` DateFirstAvailable string `json:"date_first_available"` IsDiscontinuedByManufacturer string `json:"is_discontinued_by_manufacturer"` }
type RecentFeedback ¶
type RelatedItems ¶
type Resp ¶
type Resp struct { Parse bool `json:"parse"` ParseInstructions bool `json:"parse_instructions"` Results []Results `json:"results"` Job Job `json:"job"` StatusCode int `json:"status_code"` Status string `json:"status"` }
Resp is the response struct for all ecommerce sources.
func GetResp ¶
GetResp returns a Resp struct from the http.Response object. It will use the parse and customParserFlag parameters to determine how to parse the response.
func (*Resp) UnmarshalJSON ¶
Custom function to unmarshal into the Resp struct. Because of different return types depending on the parse option.
type Result ¶
type Result struct { Paid []Paid `json:"paid"` Filters []Filters `json:"filters"` Organic []Organic `json:"organic"` SearchInformation SearchInformation `json:"search_information"` Suggested []SuggestedAmazonSearch `json:"suggested"` AmazonChoices []AmazonChoices `json:"amazon_choices"` InstantRecommendations []InstantRecommendations `json:"instant_recommendations"` Pos int `json:"pos"` Url string `json:"url"` Asin string `json:"asin"` Price float64 `json:"price"` Title string `json:"title"` Rating float64 `json:"rating"` Currency string `json:"currency"` IsPrime bool `json:"is_prime"` PriceStr string `json:"price_str"` PriceUpper float64 `json:"price_upper"` RatingsCount int `json:"ratings_count"` }
type Results ¶
type Results struct { CustomContentParsed map[string]interface{} ContentParsed Content Content string CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` Page int `json:"page"` Url string `json:"url"` JobID string `json:"job_id"` StatusCode int `json:"status_code"` ParserType string `json:"parser_type"` }
type SearchInformation ¶
type Specifications ¶
type SuggestedAmazonSearch ¶
type SuggestedAmazonSearch struct { Url string `json:"url"` Asin string `json:"asin"` Price float64 `json:"price"` Title string `json:"title"` Rating float64 `json:"rating"` Currency string `json:"currency"` UrlImage string `json:"url_image"` BestSeller bool `json:"best_seller"` PriceUpper float64 `json:"price_upper"` IsSponsored bool `json:"is_sponsored"` Manufacturer string `json:"manufacturer"` PricingCount int `json:"pricing_count"` ReviewsCount int `json:"reviews_count"` IsAmazonsChoice bool `json:"is_amazons_choice"` Pos int `json:"pos"` ShippingInformation string `json:"shipping_information"` SalesVolume string `json:"sales_volume"` NoPriceReason string `json:"no_price_reason"` SuggestedQuery string `json:"suggested_query"` }
type UniversalUrlOpts ¶
type UniversalUrlOpts struct { UserAgent oxylabs.UserAgent CallbackUrl string GeoLocation string Locale oxylabs.Locale Render oxylabs.Render ContentEncoding string Context []func(oxylabs.ContextOption) CallbackURL string Parse bool ParserType interface{} ParseInstructions *map[string]interface{} PollInterval time.Duration }
UniversalUrlOpts contains all the query parameters available for universal url scrape.