Skip to content

albertywu/amazon-shopper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Amazon Whole Foods Shopper

  • Checks for open delivery windows
  • If open delivery window is found, complete purchase
  • Uses Google Chrome, with Puppeteer for automation

Prerequisites

  • Mac OS X (tested with 10.14.6)
  • Google Chrome (tested with 81.0.4044.92)

Instructions

  1. Install

From your working directory:

git clone [email protected]:albertywu/amazon-shopper.git
cd amazon-shopper
yarn
  1. yarn setup This command will start up a fresh instance of Google Chrome. All browser information (session data, etc) are stored locally in ./chrome-data-dir and are sandboxed there. Login to Amazon, and set up your Whole Foods shopping cart with items you'd like to purchase.

  2. yarn checkout This command will start the checkout process, which 1) looks for open delivery windows, and 2) completes purchase if an open window is found. From time to time Amazon will complain about various things like items being out of stock. When this happens, the app will blindly accept default suggestions (by clicking "Continue"). Note: this may cause items to be removed from your cart or substituted if they are no longer in stock.

[Optional] Configure Emailer

To send email notifications when a delivery slot is found, create a config.json file with the following structure:

{
  "smtpConfig": {
    "host": <string; SMTP host>,
    "port": <number; SMTP port>,
    "auth": {
      "user": <string; username>,
      "pass": <string; password>
    }
  },
  "emailRecipients": <array of strings; emails>
}

About

possibly useful during pandemics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published