GithubHelp home page GithubHelp logo

matteblack9 / nike-buy-bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tylerburleigh/nike-buy-bot

0.0 0.0 0.0 2.48 MB

A bot using Node.js / puppeteer that buys a Nike shoe when it drops

JavaScript 100.00%

nike-buy-bot's Introduction

nike-buy-bot

This is a simple bot using Node.js / puppeteer that buys a Nike shoe when it drops.

Prerequisites

  • Node.js
  • git command-line tools
  • A text editor (I recommend Notepad++)
  • A Nike.com account with a credit card already saved to the account for pre-filling

Install Node.js

  • Install Node.js (LTS)
  • Test your Node.js installation: First open a terminal (in Windows, you can do WIN + R then type cmd and hit ENTER), then type node -v and you should see something like v10.16.0 (the current version as of right now).

Install git

  • Install git
  • Test your git installation: First open a terminal (in Windows, you can do WIN + R then type cmd and hit ENTER), then type git --version and you should see something like git version 2.8.1.windows.1 (the current version as of right now).

Getting started

  1. Clone this repository using git
  • Open a terminal (in Windows, you can do CTRL + R then type cmd and hit ENTER)
  • Enter the following:

git clone https://github.com/tylerburleigh/nike-buy-bot.git

  1. Make sure you are in the bot directory within the terminal

cd nike-buy-bot

  1. Install the Node.js dependencies

npm install

  1. Using a text editor, edit the bot.js file in the bot directory. In this file, look for the section called Parameters to set. These are the parameters to change:
  • user
  • pass
  • cv_code
  • size
  • url
  • debug
  • buy
  1. Run the bot

Once you've configured the bot, you can run it

node bot.js

Ideally, you would run it right around the time of the drop.

Screenshots

The bot works in a series of 9 "rounds", which include loading the shoe page, finding and clicking the desired shoe size, adding it to the cart, logging into your Nike.com account, and submitting an order.

Round 1 - Loading the shoe page

Round 1 - Loading the shoe page

Round 2 - Finding/scrolling to the size selectors

Round 2 - Finding/scrolling to the size selectors

Round 3 - Clicking the desired shoe size selector

Round 3 - Clicking the desired shoe size selector

Round 4 - Scrolling to the add-to-cart button

Round 4 - Scrolling to the add-to-cart button

Round 5 - Clicking the add-to-cart button

Round 5 - Clicking the add-to-cart button

Round 6 - Logging in when the login modal appears

Round 6 - Logging in when the login modal appears

Round 7 - Entering the 3-digit credit card validation

Round 7 - Entering the 3-digit credit card validation

Round 8 - Clicking the "Save & Continue" button

Round 8 - Clicking the "Save & Continue" button

Round 9 - Clicking the "Submit Order" button

(not shown here)

nike-buy-bot's People

Contributors

tylerburleigh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.