The Mensa script is a tool for fetching and filtering meal information from a website and printing it. It provides options to filter meals based on keywords and allows you to specify a custom date.
schmidt@admin-02:~$ mensa --help
usage: mensa.py [-h] [-e] [-d D] [-c]
This script returns the meals of today in the Campo Mensa
optional arguments:
-h, --help show this help message and exit
-e Print only when keywords "suppe" or "eintopf" are found
-d D Specify a custom date in the format 'YYYY-MM-DD'
-c Color the meals according to -e (red) and Mayo-compatibility
-
Clone the repository to your local machine:
git clone https://github.com/Jocho-Smith/campo-mensa-script.git
-
Move
mensa
to a place that is listed when you executeecho $PATH
(for user specific use~/.local/bin/
) -
Modify the path inside
mensa
to the location of themensa.py
-
Check for the correct permissions/execution
chmod +x /path/to/file/bin/mensa