stevenkowalzik / mensa-bremen-api Goto Github PK
View Code? Open in Web Editor NEWThis API scrapes the Mensa Bremen website and provides a json version of the foodplan. Used by mensabremen.de
Home Page: https://api.mensabremen.de
This API scrapes the Mensa Bremen website and provides a json version of the foodplan. Used by mensabremen.de
Home Page: https://api.mensabremen.de
The Studentenwerk website https://www.stw-bremen.de/de/essen-trinken/uni-mensa shows Symbols according to certain ingredients like Pork, Fish or a Vegan Mention. These could be implemented into the API aswell, providing more information about the different meals.
No tests yet, for automated updates etc. we should implement basic tests that garantuee the apis functions. Most importantly we should test for the DOM Structure of the scraped website. This should also ensure that the frontend continues to work: https://github.com/LegacyMode/Bremen-Mensa-Frontend
Aufläufe & Gratin, Beilage, Suppen and Salate have multiple options. They have to be seperate in the response.
At the moment the html is accessed from the cache, then scraped. This leads to long loading times, even though a cache is used. Instead the data itself should be cached and html should only be requested and scraped if the cache exceeds the TTL.
There are different drinks provided in the Mensa, these could be statically served aswell from e.g. a json file that is read.
Access to the Mensa Bremen is needed to see these prices.
right now provides a
404 Not Found
nginx/1.10.3 (Ubuntu)
There are still mutiple spaces instead of a single space in the dish name. There is a regex that should filter out double spaces, but it does not seem to work for all cases.
On accessing the API the program throws 2 unhandled promise rejection errors. These should be handled.
For now the API only serves costs for students. The Studentenwerk Website https://www.stw-bremen.de/de/essen-trinken/uni-mensa shows prices for price group B as well. This could be served per meal as well in requests.
After a quick look at the current stable v2 API, I found empty food category-objects.
{
"type": "",
"meal": [
]
},
{
"type": "",
"meal": [
]
},
{
"type": "",
"meal": [
]
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.