Giter Club home page Giter Club logo

bestbuy-item-tracker's Introduction

bestbuy-item-tracker

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

  1. Send request to api for products
  2. Check response for in stock products
  3. Notify user via text for each in stock product
  4. Repeat every 10 seconds until items are in stock then sleep for 10 minutes

Python module requirements

python -m pip install -r requirements.txt

  • Twilio
  • Requests

Twilio requirements

https://www.twilio.com/

  • Phone number
  • Account SID
  • Auth Token

Bestbuy requirements

https://developer.bestbuy.com/

  • API Key

Environment variables needed if you wish to use it as-is.

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>"

Usage

  • 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>" &

Screen Shot 2021-03-15 at 1 19 56 PM

Bestbuy

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)```

bestbuy-item-tracker's People

Contributors

johngrey0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

forkedit

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.