This is a Python program that checks the availability of products on BestBuy.com using the BestBuy API. It allows you to monitor the stock status of specific products and get notified when they become available.
- Python 3.x
urllib
librarysimplejson
librarywebbrowser
libraryplaysound
library
- Clone this repository to your local machine or download the program file.
- Install the required libraries using pip:
- Open the program file in a text editor of your choice.
- Replace the placeholder value
'xxxxxxxxxxxxxxxx'
with your BestBuy API key. You can obtain an API key by signing up for a BestBuy developer account. - Modify the
sku
list to include the SKUs (product IDs) of the products you want to monitor. Add or remove SKUs as necessary. - Run the program:
- The program will check the availability of each product in the
sku
list. If a product is not in stock, it will wait for a specified period of time and check again. - Once a product becomes available, the program will open the BestBuy website page for that product and play an alarm sound to notify you.
Note: Please ensure that you have a working internet connection while running this program.
period
variable: This variable represents the time interval (in seconds) between each availability check. You can adjust this value according to your needs. The default value is 0.5 seconds.alarm.wav
file: The program plays an alarm sound when a product becomes available. Replace thealarm.wav
file in the same directory with your desired sound file.
This project is licensed under the MIT License.