A service that gets daily specials from Arizmendi Bakery and notifies you when your favorite scones are available by creating events on your Google Calendar.
I firmly believe Arizmendi's Raspberry Chocolate Chip Scone to be among the greatest pastries ever created by humankind. Unfortunately I am not alone in this belief, as it—along with many other daily scones Arizmendi offers—regularly sells out within hours of them opening.
Instead of manually checking their daily scone calendar every few days and tracking the next time my favorite/elusive scone will be offered, I realized I could automate this process.
main_script.py - gets the current month's daily scone offerings & creates Google Calendar Events when your desired scones will be available. Designed to be run on a recurring schedule with crontab or a similar program.
- Python 3.6 or higher
- requests
- pytz
- Google API Client
- google-auth-httplib2
- google-auth-oauthlib
$ pip install requests pytz google-api-python-client google-auth-httplib2 google-auth-oauthlib
To use the Google Calendar functionality, you will need authorize access to your Google account. This is accomplished by downloading a credentials.json file here:
https://developers.google.com/calendar/quickstart/python
Follow these steps:
- Click the Enable the Google Calendar API button
- Enter a project name (I'd suggest naming it Scone Alert but it's unimportant) > hit Next
- On Configure your OAuth Client, select Desktop App and hit Create
- Click Download Client Configuration and make sure the now downloaded
credentials.jsonfile is in this project's directory
➕ Add unit tests
➕ Add argparse to run/input arguments on command line
✅ Add exclusive ingredients match (to only get scone that contains several ingredients) -> intersection vs union
➕ Implement fuzzy matching for misspellings and permutations
✅ Clean up/refactor code (create Event class instead of dicts) & harden requests
➕ Port to Google Apps Script