Skip to content

a scraper and page generator for STWHH mensa plans

Notifications You must be signed in to change notification settings

jaycibee/mensa-gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mensa-gen

a canteen plan scraper and generator for Studierendenwerk Hamburg locations

you can see it in action here

usage

$ ./mensa-gen [-l <LOCATIONS>] <TEMPLATE> <OUTFILE>

This scrapes the mensa plans for today, optionally restricting locations to those included in the LOCATIONS file and rendering the tera template TEMPLATE to the file OUTFILE

templates

mensa-gen generates pages based on a tera templates. the data is available through a locations array containing items with the following structure:

{
    "name": "the name of the location",
    "meals": [
        {
            "name": "the name of the meal",
            "price": "the price of a meal (as a string with , as a delimiter)",
            "kind": "one of 'Normal', 'Vegetarian' or 'Vegan'"
        },
        ...
    ]
}

About

a scraper and page generator for STWHH mensa plans

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages