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
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
- Python 3.9
- Python modules in
requirements.txt
- Google Chrome
- WebDriver for the specific Chrome version in same directory
- Starts Selenium
- Loops the following until all attributes of the item are correct:
- Verifies item is in stock
- Verifies the price is less than the set maximum
- Logs in
- Adds to cart
- Checks out
- install chromedriver
- install Python 3.9
py -m pip install -r requirements.txt
- rename the ".env.sample" file to ".env" and edit it as you need.
cp .env.sample .env
nano .env
py main.py