Skip to content

Costco

flowtask.components.Costco

Costco Product Reviews Scraper using Bazaarvoice API.

Example configuration:

Costco:
  type: reviews
  use_proxies: true
  paid_proxy: false
  api_token: xxx

Costco

Costco(loop=None, job=None, stat=None, **kwargs)

Bases: ReviewScrapper

Costco Product Reviews Scraper.

This component extracts product reviews from Costco using the Bazaarvoice API. It expects a DataFrame with product URLs or product IDs.

extract_product_id

extract_product_id(product_url)

Extract product ID from Costco URL.

Parameters:

Name Type Description Default
product_url str

Costco product URL

required

Returns:

Type Description
str

Product ID as string

Example

URL: https://www.costco.com/kidkraft-atrium-breeze-wooden-outdoor-playhouse-with-sunroom--play-kitchen.product.4000317158.html Returns: 4000317158

product_details async

product_details()

Extract product details (placeholder for future implementation).

product_info async

product_info()

Extract product information (placeholder for future implementation).

reviews async

reviews()

Extract reviews for all products in the DataFrame.