Skip to content

Text message alerts when grocery delivery times are available, using Grocer and Twilio

Notifications You must be signed in to change notification settings

itsjohnward/grocer-notifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grocer-notifier

This app is an example project using the Grocer package.

It simply polls your grocer of choice and sends a text message to the number you provide if delivery times are available.

To install:

$ pip install git+https://github.com/itsjohnward/grocer-notifier

Getting a ChomeDriver

  1. Download ChromeDriver from here https://chromedriver.storage.googleapis.com/index.html?path=83.0.4103.39/
  2. Set an environment variable pointing to where you downloaded it. i.e. export CHROMEDRIVER_PATH=/Users/john/csci-e-29/grocer/chromedriver

Setting up account info

Set your instacart username and password as environment variables like so:

export [email protected]
export PASSWORD=password

To run:

  1. Make sure you have a Twilio developer account set up, and then set your app keys:
$ export TWILIO_PHONE_NUMBER=+12345678910
$ export TWILIO_ACCOUNT_SID=putyourshere
$ export TWILIO_AUTH_TOKEN=putyourshere
  1. Try running it:
$ grocerytime wegmans 1245678910

It should output a formatted message to the console. Once you're happy with how it's configured, you can turn on text messages by setting the following environment variable:

$ export TWILIO_PROD_MODE=TRUE

Then, you should start getting text messages, that look like this:

text-message-screenshot.png

About

Text message alerts when grocery delivery times are available, using Grocer and Twilio

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages