| Crates.io | ovgu-canteen |
| lib.rs | ovgu-canteen |
| version | 0.4.2 |
| created_at | 2017-04-24 15:39:00.180124+00 |
| updated_at | 2020-04-30 16:48:19.517343+00 |
| description | A canteen parser library for the Otto-von-Guericke University Magdeburg. |
| homepage | https://fin-ger.github.io/rust-ovgu-canteen/ |
| repository | https://github.com/fin-ger/rust-ovgu-canteen/ |
| max_upload_size | |
| id | 11841 |
| size | 158,842 |
This library parses the meals from the Studentenwerk Magdeburg canteen website.
Note: This library uses async/await. In order to work properly, the
tokioruntime must be used. I'm sorry butasync-stdwont work 😢
Put this in your Cargo.toml:
[dependencies]
ovgu_canteen = "^0"
In order to run an example from the examples folder issue the following command.
$ cargo run --example <name>
To get the canteen information in a json format you can use this example:
$ cargo run --example json | jq -r '.[0].days[0].meals[0].price.student'
jq is a json querying software available via your distributions package manager.
This project is licensed under the GPL-v3 license - see the LICENSE file for details.