To Install the Best Buy Bot
These instructions are for Mac users only.
Clone this Repo to your machine.
- BestBuyBot
- Open in VScode.
Is Python installed?
No:
- Please reference the Python documentation for installing Python.
Yes:
- Move onto the next step.
Install Selenium.
-
- Open the VScode built in terminal.
-
- install selenium using "pip3 install selenium" or if you are using an older version of python use "pip install selenium".
Download web driver for Chrome. If using Firefox, please see next step
-
- Find out which version of chrome you are using by typing "chrome://version" in your chrome search bar.
-
- If you are using Chrome version 97, please download ChromeDriver 97.0.4692.36
-
- If you are using Chrome version 96, please download ChromeDriver 96.0.4664.45
-
- If you are using Chrome version 95, please download ChromeDriver 95.0.4638.69
-
- Once it appears in your downloads folder, extract the zip file and move the "chromedriver" file from the downloads folder to the "/usr/local/bin" PATH.
If you are using Firefox
-
- Download Geckodriver which can be found here
-
- Based on your CPU model, the file will either be geckodriver-v0.30.0-macos-aarch64.tar.gz or geckodriver-v0.30.0-macos.tar.gz
-
- Once it appears in your downloads folder, extract the zip file and move the "geckodriver" file from the downloads folder to the "/usr/local/bin" PATH.
-
- In BestBuyBot.py, locate and comment out line 8
-
- In BestBuyBot.py, locate and uncomment line 9
Test program
-
- Locate an item on best buys webpage that is in stock and copy the items link.
-
- In BestBuyBot.py, locate the comment on line 11 that reads "driver.get('PASTE_TEST_LINK_HERE')" and paste a the copied link there.
-
- Uncomment line 12
-
- Save the file
-
- Run the scrypt by pressing the play button on the upper right corner of the screen.
-
- If everything works fine, comment out line 11 and uncomment lines 15 and 16 that are preset to PS5
-
- Run the program and watch it work!
Notes
- If you wish to buy a different item on Best Buys Website, you can locate the item and paste the link in.
- THIS BOT WILL ONLY ADD THE ITEM TO THE CART. IT WILL NOT BUY THE ITEM FOR YOU.
- If you do not know how to Uncomment or Comment out items, click on the line number and press "command and /"
Stretch Goals
- I want this bot to eventually be able to go through with the purchase and input the customers info.