This tool helps to constantly monitor AmazonFresh delivery time-windows and alerts the user when there is a new timeslot. It uses Python, and mainly BeautifulSoup.
The tool is developed during COVID-19 pandemic, when the entire globe faces the unprecedented threat of the new coronavirus. People are social distancing themselves to help contain the virus. While most should stay at home and avoid contacts with others, the need for grocery shopping services surges and causes a shortage of delivery timewindows in many cities. Hopefully, this tool could make life easier for those who rely on AmazonFresh.
- Install python and pip.
- Install all libraries in
requirements.txt
. - Under
when-is-amazon-fresh-available
, create a file named.env
. All the environmental variables including your amazon email and password will be stored here. Copy paste the following into.env
. Replace some of the fileds as described. ForCOOKIE
andSESSION_ID
, you could find it by opening up DevTools in your browser and see the request headers of the first network activity when you click on any link under amazon. (See this article if you don't know how to inspect network activities in the browser).
EMAIL={Replace with your amazon email}
PASSWORD={Replace with your amazon password}
LOG_FILENAME=log/when-is-amazon-fresh-available.log
COOKIE={Replace with your Cookie}
SESSION_ID={Replace with your SessionID}
- Add all your Amazon fresh or Wholefoods items to your cart.
- Run the program:
# if you want amazon fresh
python when.py 1
# if you want wholefoods
python when.py 0
- You will receive alarms when there is a new slot available.
- Finds a better way to make alarm sound on Mac.
- Automatically checkout if there is an available timewindow.
- Send emails to notify instead of alarming.
This tool is intended only for personal use and developed under a short time, which prioritizes practicality above others. I hope it could make your life easier during this special time.