Giter Site home page Giter Site logo

sneakerbot's Introduction

SneakerBot

Problem: Very often users need to wait for shoes to be available when they are out of stock.On big sneaker releases, shoes can sell out in under a second, and so scripts are much faster than manually going through the webpage.
Solution:SneakerBot, written in Python allows users to directly checkout shoes as soon as they are available

  • Url Generation:Generating URL based on model number and size
  • Data Acquisition: Scraping using Selenium Web Driver and Beautiful Soup to retrieve available sizes.
  • Add to Cart: Adding to cart along with checkout on popup banner
  • Checkout completed with shipping option onto payment now
  • Payment Complete
  • Testing

Usage:

STEP ONE

$ git clone https://github.com/mridulghanshala/SneakerBot
$ cd SneakerBot
$ pip install selenium 

STEP TWO

Create a config.py file in the local directory that looks similar to this for each order you are placing.

keys = {
    "product_name":"stan-smith-shoes",
    "product_model":"M20324",
    "first_name": "John ",
    "last_name": "Fisher",
    "street_address": "Forest Hills Dr.",
    "city":"Quebec",
    "province_code":"ON",
    "shipping":"express",
    "email": "[email protected]",
    "phone_number": "6789998212",
    "zip_code": "N2L 4V9",
    "card_cvv": "666",
    "expiry":"02/2023",
    "card_number": "4094439936008035"
}

STEP THREE

You may have to download the correct chromedriver for you operating system (Linux/OSX/Windows), put the chromedriver the SneakerBot directory with the script.

chromdriver: http://chromedriver.chromium.org/downloads

STEP FOUR

$ python UrlGen.py

sneakerbot's People

Contributors

mridulghanshala 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.