DPS Menu Scraper

Turn PDFs Lunch menus into Calendars.

Setup

One-time setup:

pip install -r requirements.txt
python setup.py

Set up Google API access as described here, here, and here.

Usage

To (re-)generate calendar menus:

python pdf_2_ics.py

The repository has also been set up to run the above script via a Github Actions workflow. It is currently configured to run once a night, for the first 5 days of each month. This creates a ZIP of the created ICS files, which can then be downloaded by the repository owners. It can then be posted as outlined below to the set of Google Calendars maintained by the same folks.

To post events to calendars (if you have write access):

python gcal.py

Critical Acclaim

“Gods!! This calendar link is amazing! Thank you sooooooo much!!”

“Thank you!! Super helpful, much appreciated!!”

“David, this is seriously the best email I’ve ever gotten!!! Thank you so much, looking up the menu everyday was so annoying, and my only old-guy solution was printing it onto paper 😂 … AMAZING!”

“This is amazing, David. My kiddo will not eat at school anymore (infuriating) but I know a lot of people will truly get a lot out of this. And right now, using our superpowers for the greater good is all we got! And it is extra important. Thanks“

“You sir are the man! Well done!”

“Incredible”

“Not all hoagies wear capes. Thanks David!”

“Thanks David! … I've heard from a lot of folks that the menu situation is annoying. So definitely it would be valuable to host on ekpowe.org for families as well.“

“Works great!!! Thanks!”

“This is awesome. Thanks!”

“Those are serious superpowers, David! awesome!”

“This is fantastic! My son asks about the menu every morning and I love having it on my calendar.”

Get the calendars!

References