Skip to content

Python bot for monitoring Best Buy product stock (originally for RTX3080 GPUs, can be used for other products), adding to cart once stock is detected, expediting checkout process, and posting status updates to a Discord channel for easy remote monitoring.

License

Notifications You must be signed in to change notification settings

Ben-M-90/BestBuyStockBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contributors Forks Stargazers Issues MIT License LinkedIn


Bot for monitoring GPU stock availability at Best Buy and purchasing once stock has returned. Can also be used for other Best Buy products with a desired product URL.
Explore the docs »

Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgments

About The Project

Product Name Screen Shot

Developed during the Great GPU Shortage of 2021. Bot uses Selenium to control a Chrome web driver with a custom user agent and various other strategies to mask bot presence. Utilizes some shortcuts to speed up purchasing process. Status updates pushed to configurable Discord channel via Discord webhook so current status can be monitored remotely.

(back to top)

Built With

  • Python
  • Selenium

(back to top)

Getting Started

Prerequisites

Before beginning setup, it is recommended to [https://docs.python.org/3/tutorial/venv.html#creating-virtual-environments](create and activate a Python virtual environment).

Installation

  1. Clone the repo
    git clone https://github.com/ben-m-90/bestbuystockbot.git
  2. Navigate your terminal to the local storage location created in Step 1.
  3. Install packages from requirements.txt
    pip install -r requirements.txt
  4. Rename 'sample.env' to '.env'
  5. Edit '.env' in a text editor.
  • DISCORD_TOKEN, DISCORD_GUILD, MENTION_ID, and WEBHOOK_URL will be set by Discord. See [https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks](Discord documentation on creating webhooks).
  • LOGIN_EMAIL, LOGIN_PASSWORD, and CVV are your login information for BestBuy.com. Default payment methods and shipping addresses must be setup through BestBuy.com. CVV will be your credit card CVV used for finalizing a purchase. The bot will use your default payment method associated with your BestBuy.com account. No payment information is passed through or stored by this bot, only CVV.
  • Add URLs for products to be monitor, separated by commas and on new lines.
    DISCORD_TOKEN = ""
    DISCORD_GUILD = "" 
    MENTION_ID = ""
    WEBHOOK_URL = ""
    
    LOGIN_EMAIL = ""
    LOGIN_PASSWORD = ""
    CVV = ""
    
    URL_LIST = "
    https://www.bestbuy.com/site/nvidia-geforce-rtx-3080-10gb-gddr6x-pci-express-4-0-graphics-card-titanium-and-black/6429440.p?skuId=6429440,
    https://www.bestbuy.com/site/evga-geforce-rtx-3080-xc3-ultra-gaming-10gb-gddr6-pci-express-4-0-graphics-card/6432400.p?skuId=6432400,
    https://www.bestbuy.com/site/asus-rog-strix-g15-advantage-edition-15-6-fhd-gaming-laptop-amd-ryzen-9-5900hx-16gb-memory-radeonrx-6800m-512gb-ssd/6466550.p?skuId=6466550"
    
  1. Additional settings are available in stock_bot.py
  • Set 'PRINT_TO_DISCORD' to True to enable printing status updates to the Discord webhook configured in Step 4.
  1. Run bot in your Python Virtual Environment. Note that the shortcut py may not work on all systems and is dependent on how your local Python installation is configured.
    py stock_bot.py

(back to top)

Usage

After properly configuring, the bot will cycle through list of provided URLs and check if stock is available. It will continue to do this until it detects a product has return to stock. Once a product has been detected as in stock the bot will execute a purchase process where the product will be purchased. Default payment methods and shipping locations must be setup through BestBuy.com for this to work.

(back to top)

Roadmap

  • Extend functionality to work with other websites outside of BestBuy (e.g. Amazon, Newegg)

See the open issues for a full list of proposed features (and known issues).

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Contact

Project Link: https://github.com/ben-m-90/bestbuystockbot

(back to top)

Acknowledgments

(back to top)

About

Python bot for monitoring Best Buy product stock (originally for RTX3080 GPUs, can be used for other products), adding to cart once stock is detected, expediting checkout process, and posting status updates to a Discord channel for easy remote monitoring.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published