tl-its-umich-edu / m-voice

Voice interface implementation for University of Michigan applications using Dialogflow. Currently focusing on MDining.
1 stars 2 forks source link

Create cron job to "scrape" dining api #5

Closed jonespm closed 5 years ago

jonespm commented 5 years ago

We should have a cron job that will scrape the data from the dining api and update our internal database.

It looks like the meals are at http://api.studentlife.umich.edu/menu/menu_generator/meal.php The locations are at http://api.studentlife.umich.edu/menu/menu_generator/location.php

Currently there are files created, MealExtra, MealFull, MealMain. (As well as corresponding Location files)

We should have these files created nightly.

jonespm commented 5 years ago

@Ayaykos commented that we may just want to verify that there are no new locations/meals added and notify us if there are rather than updating the entities. We'd want to research the best practice for this if we do this instead which is fine. I think the script will be similar.

jonespm commented 5 years ago

This can probably be resolved for now by #16 but we may need to revisit this later.