Skip to content

ethanol-cx/when-is-amazon-fresh-available

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

When is Amazon Fresh available?

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.

Why it is developed?

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.

How to use?

  1. Install python and pip.
  2. Install all libraries in requirements.txt.
  3. 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. For COOKIE and SESSION_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}
  1. Add all your Amazon fresh or Wholefoods items to your cart.
  2. Run the program:
 # if you want amazon fresh
    python when.py 1
 # if you want wholefoods
    python when.py 0
  1. You will receive alarms when there is a new slot available.

Potential new features:

  1. Finds a better way to make alarm sound on Mac.
  2. Automatically checkout if there is an available timewindow.
  3. 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.

Releases

No releases published

Packages

No packages published

Languages