Skip to content

Instantly share code, notes, and snippets.

Last active October 15, 2020 23:03
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?

How to use

Install (Windows)

  • Install chocolately and install nodejs/NPM

if you are using Windows you need to become admin and from there you need to install nodejs

you can use chocolately to instrall nodejs and all of the other packages on the machine you are using.

  1. if you are using Windows make sure you are admin and then open a powershell instance.

once the powershell instance is open use the following command to check the current setting on the shell.


If it returns Restricted, then run Set-ExecutionPolicy AllSigned or Set-ExecutionPolicy Bypass -Scope Process

Once you have set these run the following

"Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString(''))"

Run that command without the quotes and let the script install

once the script is installed you will need to restart.

once your mahcine is reset then you will need to come back start another admin powershell instance and then run the following commands and complete the install for each p[iece as your are prompted.

choco install nodejs choco install npm choco install git choco install python --version=3.8.0

Once you have these installed you will also need the follwing driver for the web browser(the script ONLY works for Chrome-Webkit )

You will need the ChromeDriver installed which you can get from the following website once you have it you will need to set the drive in the PATH of the bin for windows. you can do this by follwing this guide.

once you have all of these then you will need to open another instance of powershell. From there you will need to enter the following commands without the quotes


where "username" is the name of your account in your computer.

"git clone" once you have cloned the repo enter the repo from powershell you can do this by opening a powershell instance and move the folder with the following command.

"cd snkrs-bot"

once you are in the folder type the file.

"npm install"

then wait for the bot to build once the bot is built you will see a file in the folder labled ".env" If it is not there you will need to make it.

You will need to put the following varibale in the file.

""" PASS=yournikeaccountpassword CVC=yourcreditcardcvc """

you will need to edit ".env" to enter in your account and your credit card, password. The .env file will look something like this.

then to set the shoes and the size you want you will need to change the values to change the shoe size and also include a link to the shoe you want to buy.

It will look like this.


// size: the shoe size, as you see in the table of sizes on a product page, e.g., 'M 9 / W 10.5' const size = 'US M 9.5 / W 11';

// url: url to the shoe page, e.g., '' const url = '';

// buy: ****WARNING**** if you set this to true it *may* actually make a purchase
// you can leave this to false and the bot will not "submit order"
const buy = false;


Also to cron the bot for a specific time you can set it for a time of the drop,

You can do that by changing the following

/* date: the date and time the shoe is being dropped at. Months will begin at zero so be sure to subratct one from any month.
	Date format should be as follows: (year, month - 1, day, hour, minute, seconds) 
const date = new Date(2020, 4, 19, 23, 48, 30);

once you have these set then continue to the next step.

from there once the file is set you can run the bot by running the following "node bot.js" to have it run and buy the shoes you want.

when the bot is running if the shoes are ready to buy it will automatically buy for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment