Under the root directory of the project, run the following:
npm install
A file named credentials.js
in the project root directory is not committed. It should have the following contents:
module.exports = {
email: 'your email to login Amazon',
password: 'your password to login Amazon',
};
Before running this script, you need to add what you want to buy in the shopping cart first. This script sends you a notification if a delivery window becomes available.
node app.js
- Sometimes clicking the
Continue
button on the substitute preference selection does not work. In this case, you can manually click theContinue
button and the script will continue. - The element id for
Checkout Whole Foods Market Cart
might be different in your case. Update it with the correct id on line 52 inapp.js
. - The system bell will ring when a delivery window is available.