/Amazon-Auto-Checkout

This is a python script that checks for stock of a product and then buys it

Primary LanguagePythonMIT LicenseMIT

Amazon Auto Checkout

Use at your own risk. Read thoroughly

This is a Python script that checks if an item is in stock and under a certain price limit. The script will then purchase the item with limited captcha solving abilities.

Example: script to buy a PS5 on Amazon

Notes of caution:

Things to check for on Amazon/potential edge cases:

  • Amazon 2FA (an option is to disable but this will expose your account to security problems)
  • Make sure you amazon shopping cart is empty
  • Behavior is dependent on your default shipping address and payment method. Use at your own risk

Requirements:


Logic/Behavior:

  1. Starts Selenium
  2. Loops the following until all attributes of the item are correct:
    1. Verifies item is in stock
    2. Verifies the price is less than the set maximum
  3. Logs in
  4. Adds to cart
  5. Checks out

Requirements

py -m pip install -r requirements.txt

Copy .env

  • rename the ".env.sample" file to ".env" and edit it as you need.
cp .env.sample .env
nano .env

Run

py main.py