I built this bot to go to Walmart.com and purchase one PS5 Bot for myself. I wanted to practice creating web bots, and I also wanted to purchase a PS5! This bot is not intended to purchase mass quantities of PS5's. I DO NOT SUPPORT SCALPERS.
Anyways, to use this bot I assume you already have a walmart.com account created, with you credit card and billing address saved to your profile. The bot makes it dead simple to grab a PS5 and check out (In most situations), by just logging you in to your account, sitting on the page and refreshing until the "Add to Cart" button becomes available, and then checking out with your account!
To run this project you MUST create a .env file in the directory of the project that contains your Walmart email, Walmart Password, and the CCV of your credit card in this format:
//.env file content
[email protected]
WALMART_PASSWORD=JohnSmith123
CREDIT_CARD_CVV=826
- Install Node.js version should be >12.9
- Install git
- download this project
- Open up a terminal
- navigate to the project directory cd
/the/project/directory
- Install all node dependencies using
npm i
- Create the
.env
file talked about above - npm start to run the bot
- Sometimes this bot will run into captcha issues based on the User Agent (stop the bot from running with
ctrl c
on mac and restart the script again withnpm start
) - I have not yet coded in logic for running into the "Oh Dear" page due to traffic spikes, or the "This was not added to cart modal"