Giter Club home page Giter Club logo

footpatrolapi's Introduction

FootpatrolAPI

API for Footpatrol's mobile framework written in Python by Luke Davis (@R8T3D)

Features

  • Add products to cart

Installation

FootpatrolAPI requires Python 2.7

1. Install requirements
$ cd DIRECTORY_CONTAINING_FOOTPATROLAPI
$ pip install -r requirements.txt
2. Set your cart_id

Edit the main.py file and set the cart_id variable to your CART ID. I can't tell you how to get this

3. Run
$ cd DIRECTORY_CONTAINING_FOOTPATROLAPI
$ python main.py
3. ATC
  1. Fully close the Footpatrol mobile app on your phone.
  2. Type in your desired PID.SIZE and then press enter.
  3. Open the Footpatrol mobile app
  4. The item should now be in your cart.

Troubleshooting

  1. The item isn't in my cart what happened?

    • Your cart id is incorrect
    • Your PID.SIZE is incorrect
    • The desired product is out of stock
  2. How do I get the cart ID? Vaguely, you need to view the network requests of your mobile device and get it from there.

  3. What is the x-api-key? The x-api-key allows you to change the script to work for other websites besides Footpatrol (but you need to do a bit more than just change that). I thought I'd make it a variable incase they ever change it.

Todos

  • Web based GUI
  • Stock check
  • Auto-checkout

License

MIT License (MIT)

footpatrolapi's People

Contributors

dir avatar

Watchers

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