Bestbuy¶
flowtask.components.BestBuy
¶
BestBuy
¶
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
```
products
async
¶
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. |
stores
async
¶
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
¶
Check if the exception is a 502 Bad Gateway error.