Skip to content

Bestbuy

flowtask.components.BestBuy

BestBuy

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

Bases: FlowComponent, SeleniumService, HTTPService

BestBuy.

Combining API Key and Web Scrapping, this component will be able to extract Best Buy Information (stores, products, Product Availability, etc).

Example:

```yaml
BestBuy:
  type: availability
  product_info: false
  brand: Bose
```

availability async

availability()

availability.

Best Buy Product Availability.

chunkify

chunkify(lst, n)

Split list lst into chunks of size n.

product async

product()

product.

Best Buy Product Information.

products async

products()

Fetch all products from the Best Buy API by paginating through all pages.

Returns:

Name Type Description
list

A combined list of all products from all pages.

reviews async

reviews()

reviews.

Best Buy Product Reviews.

stores async

stores()

Fetch all stores from the Best Buy API by paginating through all pages.

Returns:

Name Type Description
list

A combined list of all stores from all pages.

bad_gateway_exception

bad_gateway_exception(exc)

Check if the exception is a 502 Bad Gateway error.