Code Monkey home page Code Monkey logo

when-is-amazon-fresh-available's Introduction

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.

when-is-amazon-fresh-available's People

Contributors

ethanol-cx avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.