A python script for refreshing the amazon prime checkout page to find whether there are available slots or not
This repo is modified based on this work: https://github.com/benh57/PrimeNowNotifier
The main changes are:
- When slots are open, it will pop-up a notification to the macOS notification center.
- Use the wxpython framework to make the IO within the browser functioning normally
- Use multithreading, so that the browser won't freeze during sleeping
- CEFpython3
- wxpython
- beautifulsoup4
- Go to notification center setting in MacOS and set the notification from Script Editor to "Alerts" (optional)
$ pythonw primenow.py --enable-say --username=<your-amazon-email> --password=<your-password> --sleep=<seconds-between-refresh>
- After you install wxpython, you should use pythonw instead of python
- The username and password options are optional. You can type in them later
- After loading the page, navigate to the checkout page
- Wait for the notification for new slots~
- For those who are addicted to Oatly oat milk. Run oatly.py for checking if it's in stock again...