This was created to track out of stock items from best buy and notify me via text when anything is restocked.
Logical steps of the program
- Send request to api for products
- Check response for in stock products
- Notify user via text for each in stock product
- Repeat every 10 seconds until items are in stock then sleep for 10 minutes
python -m pip install -r requirements.txt
- Twilio
- Requests
- Phone number
- Account SID
- Auth Token
https://developer.bestbuy.com/
- API Key
Add to your zprofile/bash_profile/windows environment before using.
- TWILIO_FROM_NUMBER="+###########"
- TWILIO_ACCOUNT_SID="<YOUR_SID>"
- TWILIO_AUTH_TOKEN="<YOUR_AUTH_TOKEN>"
- MY_PHONE="+###########"
- BEST_BUY_API_TOKEN_1="<BESTBUY_API_TOKEN>"
- BEST_BUY_API_TOKEN_2="<BESTBUY_API_TOKEN>"
python -m main -u "<INSERT_BEST_BUY_QUERY_BUILDER_URL>"
Please use this url to build your own query - https://bestbuyapis.github.io/bby-query-builder/#/productSearch
To run in the background and with no output
nohup python -m main -u "<INSERT_BEST_BUY_QUERY_BUILDER_URL>" &
Start - nohup python3 -um bestbuy_checker &
Stop - sudo kill $(pgrep -f bestbuy_checker)```
# Lululemon
```cd /home/pi/Desktop/git/bestbuy-item-tracker
Start - nohup python3 -um lulu &
Stop - sudo kill $(pgrep -f lulu)```