I put this page together for all my non-dev folks who want to give this script a shot and keep your bellies full!

Here's the step-by-step guide (this is only for Macbooks):

Initial Setup

  1. Open up Terminal by using Cmd + Space bar to open up spotlight search, and then type in "Terminal" and open it

  2. Check to confirm you have Python downloaded by typing in python --version:

    If you have python, it'll return the version number

    If you have python, it'll return the version number

    Note: Macs should come with Python 2.7, but in case you don't have Python 2, you can download the version for your Mac here, keep your Terminal window open

  3. Once you've got Python set up, you'll need to download some packages, run each of these in Terminal:

    import helium

    import time

    import json

    import requests

    import datetime

  4. Create a folder where you'll want to keep this script:

    I created a folder called "Stuff" within my Documents folder

    I created a folder called "Stuff" within my Documents folder

  5. Type in cd Documents/your-folder-name (assuming you also created your folder under Documents) and hit enter:

    https://s3-us-west-2.amazonaws.com/secure.notion-static.com/238a2b91-71f6-4e92-9e56-2d0d8c70898d/Screen_Shot_2020-04-11_at_1.42.43_AM.png

  6. You should then see that you're within the folder you created:

    https://s3-us-west-2.amazonaws.com/secure.notion-static.com/c386258a-6b8b-45b2-b406-3f5e1375203c/Screen_Shot_2020-04-11_at_1.47.24_AM.png

Setting Up the Script

  1. Leave your Terminal open, and head over to: https://github.com/anaqi/instacart-delivery-availability-check, on the right side, you'll see a Clone or download green button, click the dropdown and copy the URL that's there:

    https://s3-us-west-2.amazonaws.com/secure.notion-static.com/a7476d81-3c64-492e-b29f-569d84d8ee45/Screen_Shot_2020-04-11_at_1.52.14_AM.png

  2. Navigate back to your Terminal and type in git clone and paste the link you've copied, and hit enter, but keep your Terminal open after:

    https://s3-us-west-2.amazonaws.com/secure.notion-static.com/02a603d9-306d-402e-b9ba-cc7cdfed586b/Screen_Shot_2020-04-11_at_1.54.08_AM.png

    This will download the script to the folder you created

  3. Once done, you can open up the folder you created, and you should find the script subfolder, open it up and complete the credentials_example.json file; the STORE_LIST can be filled in with all the stores you want notifications for, use the store URL reference in Instacart:

    ![Eg: for M&M Food Market, the STORE_LIST will be: "STORE_LIST": ["m-m-food-market"]](https://s3-us-west-2.amazonaws.com/secure.notion-static.com/f4b9408d-4a39-4d34-ac74-0e6c142b2a4c/Screen_Shot_2020-04-11_at_2.42.51_PM.png)

    Eg: for M&M Food Market, the STORE_LIST will be: "STORE_LIST": ["m-m-food-market"]

  4. You can sign up for Mailgun if you want to opt in for email notifications as well; but if you choose not to, you can leave the MAILGUN_API_KEY and MAILGUN_DOMAIN fields the way it is. If you're not using Mailgun, save this file (Cmd + S) and rename it to credentials.json

    If Using Mailgun

    If you choose to setup Mailgun, you'll need to sign up for account if you don't already have one, and fill in theMAILGUN_API_KEY and MAILGUN_DOMAIN fields. The Mailgun domain can be found in the Dashboard tab (on the left side):

    https://s3-us-west-2.amazonaws.com/secure.notion-static.com/c71a009d-0c5c-4e59-a59d-61e83b62bbfe/Screen_Shot_2020-04-11_at_3.04.46_PM.png

    Copy this and paste it into the MAILGUN_DOMAIN field, then go click on the domain on Mailgun. Select "API" and then select "Python", and you will see your MAILGUN_API_KEY, copy this and fill out the field in your credentials document.

    https://s3-us-west-2.amazonaws.com/secure.notion-static.com/21289e72-d31e-479f-a6fa-753e5326baf2/Screen_Shot_2020-04-11_at_3.08.27_PM.png

    Once done, save this file (Cmd + S) and rename it to credentials.json

  5. Navigate back to your Terminal, and now type cd instacart-delivery-availability-check, hit enter:

    https://s3-us-west-2.amazonaws.com/secure.notion-static.com/c5657279-32ab-4442-b716-de959ed67755/Screen_Shot_2020-04-12_at_12.40.24_PM.png

  6. Make sure your volume is turned on for your laptop, and then type python[check.py](<http://check.py>) and press enter. The script will keep running and will notify you when there is a delivery slot available!