REST API for Mensa Zürich Website + App
- Install Mongo DB
sudo apt install -y mongodb
- Install Pip Dependency
pip install -r requirements.txt
- Make sure MongoDB is running on Port 27017.
The file menuCrawler.py contains the logic to crawl every Menu from every Mensa for the current week.
It will store all parsed menus in the collection "menus" inside the "zhmensa" database.
This script should be run periodically to keep updating the stored menus.
Execute it by typing:
python menuCrawler.py
The REST server gets started by executing the run.py script.
python run.py
It provides different routes that will return Menus and Polls in JSON format.
For further information check out the