Format the items file, enter your personal information in another, and you're all set.
- Finds items based on keywords that can be found online.
- Fills out personal information programmatically
- Checks out fast enough to get what you want
Selenium, the browser automation tool used, requires a webdriver for each browser. This repo uses Firefox because it allows a checkbox at checkout to be clicked. Follow this to set up Firefox Geckodriver with Node
Once that's set up, clone the repo
git clone https://github.com/ChrisSMendoza/supreme-bot.git
Go to the project folder and install the node dependencies
cd supreme-bot
npm install
That's it, now you're ready to get Supreme at retail price. To test everything is working enter:
cd src
node buy_items.js test_items.js
This will add Hanes tees and skate trucks to a cart, enter checkout info, but not actually purchase it.
- Place card info in debit.js
- Place personal info in user.js
You may copy items_template.js as a starting point
- Create a new file or use items.js
- Fill in each piece of information
- keyPhrase: the text to be found within a link, must partially match item names on the Supreme site
- colors: an array of colors to try, goes from left to right until a color is found (can use a single color)
- category: the category of the item, validated before being used in url
- size: the desired size
Note: an empty array or empty string are to be used when colors or sizes are not applicable respectively
Note: I use this site for setting the keyPhrase, colors, and category
Example
{
keyPhrase: "Split Box",
colors: ["Black", "White"],
category: "sweatshirts",
size: "L"
}
Ensure you're inside the src directory and enter
node buy_items.js [filename]
The bot will now sit idle until the first item's page is loaded. Chances are you are running the bot some time before the drop time. It is up to you to refresh the browser until the shop is open. Once the shop page loads, the bot will take over, it will click the items and input info. Click submit once all the info is entered and be ready to solve the captcha. Note: If no filename is entered, the bot will use items.js