Closed jonespm closed 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.
This can probably be resolved for now by #16 but we may need to revisit this later.
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.