#ovgu #canteen #mensa

ovgu-canteen

A canteen parser library for the Otto-von-Guericke University Magdeburg

13 releases (4 breaking)

0.4.2 Apr 30, 2020
0.3.2 Mar 17, 2020
0.0.5 Aug 2, 2017
0.0.3 May 17, 2017
Download history 31/week @ 2020-05-28 32/week @ 2020-06-04 1/week @ 2020-06-11 13/week @ 2020-06-18 2/week @ 2020-06-25 27/week @ 2020-07-02 26/week @ 2020-07-16 13/week @ 2020-07-23 2/week @ 2020-07-30 14/week @ 2020-08-06 29/week @ 2020-08-13 18/week @ 2020-08-20 18/week @ 2020-08-27 42/week @ 2020-09-03 16/week @ 2020-09-10

140 downloads per month

GPL-3.0 license

44KB
621 lines

OVGU Canteen Information for Rust

crates.io Latest Tag Build Status Documentation Homepage Built with Spacemacs

This library parses the meals from the Studentenwerk Magdeburg canteen website.

Note: This library uses async/await. In order to work properly, the tokio runtime must be used. I'm sorry but async-std wont work 😢

Usage

Put this in your Cargo.toml:

[dependencies]
ovgu_canteen = "^0"

How to Run the Examples

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.

License

This project is licensed under the GPL-v3 license - see the LICENSE file for details.

Dependencies

~10MB
~191K SLoC