This is a selenium BOT that will access your Amazon Fresh delivery page through browser. Once a delivery window is detected, you will get an SMS.
- Only tested on MAC. If you want to run on linux, you need a different web driver other than the chromedriver-mac.
- The Amazon 2FA is the biggest blocker. This app will only support if Amazon sends a 2FA request to you Amazon Mobile App. You need to click and confirm it with in 1 min. Otherwise, login will fail.
- After running for a while, the app may get stuck and not responding
- Whole Foods is not support since the checkout process is too complicated
You will need Twillio to send SMS
https://www.twilio.com/try-twilio
After creating the account, follow the instructions to get sid
and auth_token
Twillio trial account only allows you to send SMS to verified numbers
https://www.twilio.com/console/phone-numbers/verified
Install the Amazon Mobile App on your phone. You will need this for the potential Two Factor Authentication step. You will also need this to place the order once your receive the SMS notification.
Make sure you always put some items in both of your Fresh cart. The bot will not be able to access delivery page without items in your carts.
This app requires Python 3
Run ./init.sh
Update the generated credentials.yaml
file with your real information
Always recommended to activate a virtual environment before you do this.
Run pip install -r requirements.txt
Again, highly recommended to run this in a virtual environment
In the project root, run PYTHONPATH=. python src/main.py
Wrap this as a Docker App. 但我不会为了金钟乔一个人去做这个功能。