Due to changes to alma.be this scraper does not work anymore!
A RESTful API for the menus on alma.be written in python.
crontab -e
* 23 * * * python /path/to/script/scraper.py
Add the clean
argument to reset the database.
python /path/to/script/web.py
The web API will by default listen on all public IP addresses.
app.run(host='0.0.0.0')
/almas
Example Output
[
{
"id": 1,
"name": "Gasthuisberg"
},
{
"id": 2,
"name": "Pauscollege"
}, ...
]
/almas/:id
Example Output
{
"id": 1,
"name": "Gasthuisberg"
}
/almas/:id/menu
/almas/:id/menu/:week
/almas/:id/menu/:week/:year
Example Output
[
{
"date": "2015-09-14",
"menu": {
"Soup": [
{
"name": "Bloemkoolroomsoep",
"price": 2.4,
"vegetarian": 1
}, ...
],
"Main Course": [
{
"name": "Kalkoensteak met boontjes",
"price": 3.2,
"vegetarian": 0
}, ...
]
}
}, ...
]