Productcompetitors¶
flowtask.components.ProductCompetitors
¶
ProductCompetitors
¶
Bases: FlowComponent, SeleniumService, HTTPService
Product Competitors Scraper Component
Overview: Pluggable component for scraping product information from competitors (BestBuy and Lowes).
Properties: - url_column (str): Name of the column containing URLs to scrape (default: 'url') - account_name_column (str): Name of the column containing retailer name (default: 'account_name') - product_id_column (str): Name of the column containing product IDs (default: 'product_id') - competitors (list): List of competitor brands to search for (e.g. ['Insignia', 'TCL', 'LG', 'Sony', 'Samsung'])
parsers
¶
BestBuyScrapper
¶
Bases: ProductCompetitorsBase
product_information
async
¶
Get the product information from BestBuy.
LowesScrapper
¶
Bases: ProductCompetitorsBase
base
¶
ProductCompetitorsBase
¶
Bases: SeleniumService, HTTPService
ProductCompetitorsBase Model. Define how competitor product scrappers should work.
bestbuy
¶
BestBuyScrapper
¶
Bases: ProductCompetitorsBase
product_information
async
¶
Get the product information from BestBuy.
lowes
¶
LowesScrapper
¶
Bases: ProductCompetitorsBase
scrapper
¶
ProductCompetitors
¶
Bases: FlowComponent, SeleniumService, HTTPService
Product Competitors Scraper Component
Overview: Pluggable component for scraping product information from competitors (BestBuy and Lowes).
Properties: - url_column (str): Name of the column containing URLs to scrape (default: 'url') - account_name_column (str): Name of the column containing retailer name (default: 'account_name') - product_id_column (str): Name of the column containing product IDs (default: 'product_id') - competitors (list): List of competitor brands to search for (e.g. ['Insignia', 'TCL', 'LG', 'Sony', 'Samsung'])