Giter VIP home page Giter VIP logo

frodobot's Introduction

FrodoBot

Version 0.0.4

Uses Puppeteer and Axios to complete autocheckout against Hibbett Sports' mobile api.

Installation / Start Up

git clone

cd frodobot

npm install

npm start

Known Issues

  • This solution is very memory heavy
  • Each thread that you spawn will run a chrome instance momentarily to combat PX blocking. Dont blow up your machine.
  • There is very little validation/error handling here. 4XX errors will crash a thread, 5XX errors will get repeated mercilessly

Task Setup

Notes:

  • Ensure that state's are abbreviated and capitalized
  • Follow the format in profiles.example.js as close as possible
  • If a field is blank (i.e. apartment), leave it as ''.
  • Guest logins aren't currently supported (experimental)
  • Phone numbers should be a string of numbers, no dashes or spaces
  • Ensure that credit card expiration has no preceeding zeros (e.g. 5 instead of 05)
  • Make changes to the example file and then rename it as profiles.js
  • Shipping address == billing address.
  • Cards supported: Visa and Master Card. Amex coming later.
  • PerimeterX tokens last 10 minutes. I wouldnt start the bot more than 10 minutes out as if the token expires, it will take some time to replace.
  • Note that Prolific cart tokens (nonce) last 5 minutes. If using a release mode (2) pre fetches a cart nonce, dont start more than 5 minutes before release.
  • Drop times are 24 hour, in the local timezone that the script is being ran.

Modes

  1. Mode 1: Guest mode. This is the most vanilla usage of the bot. Adds to cart like a normal person would, start to finish.
  2. Mode 2: Login release mode. This is the most powerful option. Requires the shoes to be added to the cart via desktop and then login to account on the bot.
  3. Mode 3: Restock mode. Similar to guest mode. This is in development.

TODO List

  • Configuration validation/checking
  • Move some settings to global config file (headers, tls setting)
  • /lib /docs folder structure
  • Automatic token timers for cart nonce, px tokens, login jwt
  • Move px token generation into an external thread that only uses 1 pptr instance
  • Actually throw errors like a man
  • HTTP/2 support for Axios
  • Amex/Discover support (need to test cards, amex has diff length)
  • Add thread uuid to logging
  • Add support for USER:PASS:IP:PORT style proxies (fit to USER:PASS@IP:PORT)

License

Software is provided with no support or guarantee of support. Please be careful when using autocheckout bots, they can be prone to errors which can erroneously checkout incorrect products.

Software is released under MIT license.

frodobot's People

Contributors

alxgmpr avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

frodobot's Issues

Can you make ATC Zalando

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Got a few questions and an issue.

Hey!
So Right now i'm having an issue with the PX bypassing, it just gets stuck at PX blocked and when it tries to solve it, it ends up showing the PX blocking message again.

Just got a few questions:
Is this bot currently working?
When will the restock mode be released?

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.