Skip to content

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.

Notifications You must be signed in to change notification settings

konstantinhirschfeld/campo-mensa-script

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Mensa Script

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.

Usage

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

Example

Installation (Linux)

  1. Clone the repository to your local machine:

    git clone https://github.com/Jocho-Smith/campo-mensa-script.git
  2. Move mensa to a place that is listed when you execute echo $PATH (for user specific use ~/.local/bin/ )

  3. Modify the path inside mensa to the location of the mensa.py

  4. Check for the correct permissions/execution

    chmod +x /path/to/file/bin/mensa

Acknowledgments

  • Beautiful Soup - HTML parsing library used in this script.
  • My good friend civvi for the inspiration
  • Felix R. for the insights of the web-page

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 93.2%
  • Shell 6.8%