GithubHelp home page GithubHelp logo

cvzi / mensahd Goto Github PK

View Code? Open in Web Editor NEW
11.0 4.0 1.0 10.93 MB

☕ Parser for openmensa.org for canteens of Studierendenwerk Heidelberg, Mannheim, Stuttgart, Ulm and Hamburg

Home Page: https://cvzi.github.io/mensahd/

License: GNU General Public License v3.0

Python 92.79% XSLT 5.55% Procfile 0.03% HTML 1.63%
openmensa canteen heidelberg-university mannheim stuttgart mensa heidelberg mensaria uni university

mensahd's Introduction

mensahd

Parsers for openmensa.org. The parsers runs in a Github action and push the XML feeds to Github pages

Test xml meta and feeds Codacy Badge

Parser for openmensa.org for canteens of Studierendenwerk Heidelberg, Studierendenwerk Mannheim, Studierendenwerk Stuttgart Studierendenwerk Ulm, and Studierendenwerk Hamburg,

Parser für openmensa.org für die Mensen des Studierendenwerk Heidelberg, Studierendenwerk Mannheim, Studierendenwerk Stuttgart Studierendenwerk Ulm, und Studierendenwerk Hamburg,

Feeds Status Cron
today RunParsersToday 16,46 3-12 * * 1-5
all RunParsers 31 6,8 * * *

Links:

mensahd's People

Contributors

codacy-badger avatar cvzi avatar deepsource-autofix[bot] avatar deepsourcebot avatar github-actions[bot] avatar renovate-bot avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

m2tecdev

mensahd's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

github-actions
.github/workflows/codeql-analysis.yml
  • actions/checkout v4
  • github/codeql-action v3
  • github/codeql-action v3
.github/workflows/testUpdateFeed.yml
  • actions/checkout v4
  • actions/setup-python v5
  • actions/upload-artifact v4
.github/workflows/testcoverage.yml
  • actions/checkout v4
  • actions/setup-python v5
  • codacy/codacy-coverage-reporter-action v1.3.0
.github/workflows/updateFeed.yml
  • actions/checkout v4
  • actions/setup-python v5
.github/workflows/updateFeedToday.yml
  • actions/checkout v4
  • actions/setup-python v5
pip_requirements
requirements.txt
  • defusedxml >=0.7.1
  • lxml >=4.9.3
  • requests >=2.31.0
  • beautifulsoup4 >=4.12.2
  • soupsieve >=2.5
  • pyopenmensa >=0.95.0

  • Check this box to trigger a request for Renovate to run again on this repository

Parser seems to be running only at 9 in the morning

Hello from Stuttgart,

we have been using your API for a couple of months now and are really happy with it. Thank you for the work.

However, since a couple of days ago, the data in stuttgart/today/... is only updating at around 9am.
Could you move the parser runs to an earlier time again?

Did I understand it correctly that the switch to github actions causes this change?

Thank you!

Mannheim: JSON data source studiplus.stw-ma.de

There is a JSON endpoint at studiplus.stw-ma.de described here zaratropia/ma-mensa-bot#5

http://studiplus.stw-ma.de/api/app/mensa/info?id=416&date=1496916000000&language=de
(Requires authentication)

{
    "id": "416",
    "title": "Mensa Hochschule Mannheim",
    "date": "2017-06-08T00:00:00+02:00",
    "address": "Mensa des Studierendenwerks Mannheim\r\nan der Hochschule Mannheim  |  Paul-Wittsack-Straße 10, Bau J\r\n68163 Mannheim",
    "openings": "Mo - Do:  11:15 - 14:00 Uhr, Freitag:   11:15 - 13:45 Uhr",
    "status": "1",
    "menuList":
    [
        {
            "id": "116",
            "title": "Menü 1",
            "rating": -1,
            "cssClass": "",
            "showOnFilter":
            [
                "278",
                "4281",
                "4277",
                "280",
                "4283"
            ],
            "inputs":
            [
                {
                    "name": "typ",
                    "value": null,
                    "inputType": "customSelection",
                    "inputDisplay": "caption"
                },
                {
                    "name": "inhalt",
                    "value": "<span  class=\"showOnFilter4281 showOnFilter4279 showOnFilter4277 showOnFilter280 showOnFilter4283 hideOnFilter2799 hideOnFilter278 hideOnFilter4285 hideOnFilter4275 hideOnFilter2699 hideOnFilter282 suppe\" >Klare Gemüsesuppe mit Eierriebele&nbsp;<small><sup>[Ei, Gl, GlW]</sup></small></span><span>, </span><span  class=\"showOnFilter278 showOnFilter4285 showOnFilter4281 showOnFilter4279 showOnFilter4277 showOnFilter280 showOnFilter4283 hideOnFilter2799 hideOnFilter4275 hideOnFilter2699 hideOnFilter282\" >Gebackenes Seelachsfilet&nbsp;<small><sup>[Fi, Gl, GlW]</sup></small></span><span>, </span><span  class=\"showOnFilter4281 showOnFilter4277 showOnFilter280 showOnFilter4283 hideOnFilter2799 hideOnFilter278 hideOnFilter4285 hideOnFilter4275 hideOnFilter4279 hideOnFilter2699 hideOnFilter282\"  style=\"white-space: nowrap;\">Joghurtremoulade&nbsp;<small><sup>[Ei, Gl, GlW, Lac, Mi]</sup></small></span><span>, </span><span  class=\"showOnFilter4285 showOnFilter4281 showOnFilter4275 showOnFilter4279 showOnFilter4277 showOnFilter280 showOnFilter4283 hideOnFilter2799 hideOnFilter278 hideOnFilter2699 hideOnFilter282\"  style=\"white-space: nowrap;\">Kartoffelsalat&nbsp;<small><sup>[Sf]</sup></small></span><span>, </span><span  class=\"showOnFilter4285 showOnFilter4281 showOnFilter4275 showOnFilter4279 showOnFilter4277 showOnFilter280 showOnFilter4283 hideOnFilter2799 hideOnFilter278 hideOnFilter2699 hideOnFilter282\"  style=\"white-space: nowrap;\">Karottensalat</span>",
                    "inputType": "articleSelection",
                    "inputDisplay": "text"
                },
                {
                    "name": "preisStudent",
                    "value": "2,90",
                    "inputType": "price",
                    "inputDisplay": "label"
                },
                {
                    "name": "preisBediensteter",
                    "value": null,
                    "inputType": "price",
                    "inputDisplay": null
                },
                {
                    "name": "preisGast",
                    "value": null,
                    "inputType": "price",
                    "inputDisplay": null
                },
                {
                    "name": "kennzeichnung",
                    "value": "2150",
                    "inputType": "tagSelection",
                    "inputDisplay": null,
                    "icons": ["fish"]
                }
            ]
        }
    ],
    "colors":
    {
        "chicken": "#CC6633",
        "carrot": "#FF6600"
    },
    "additives":
    [
        {"key":"Ei","value":"Ei","category":"Allergene","icon":null},
        {"key":"En","value":"Erdnüsse","category":"Allergene","icon":null},
        {"key":"Fi","value":"Fisch","category":"Allergene","icon":null},
        {"key":"Gl","value":"Glutenhaltiges Getreide","category":"Allergene","icon":null}
    ],
    "filter":
    [
        {"id":"2799","name":"mit Geflügel"},
        {"id":"278","name":"mit Fisch"}
    ]
}

It's not completely straightforward, because the meals name are HTML:

<span class="showOnFilter4281 showOnFilter4279 showOnFilter4277 showOnFilter280 showOnFilter4283 hideOnFilter2799 hideOnFilter278 hideOnFilter4285 hideOnFilter4275 hideOnFilter2699 hideOnFilter282 suppe">
    Klare Gemüsesuppe mit Eierriebele&nbsp;<small><sup>[Ei, Gl, GlW]</sup></small>
</span>
<span>, </span>
<span class="showOnFilter278 showOnFilter4285 showOnFilter4281 showOnFilter4279 showOnFilter4277 showOnFilter280 showOnFilter4283 hideOnFilter2799 hideOnFilter4275 hideOnFilter2699 hideOnFilter282">
    Gebackenes Seelachsfilet&nbsp;<small><sup>[Fi, Gl, GlW]</sup></small>
</span>
<span>, </span>
<span class="showOnFilter4281 showOnFilter4277 showOnFilter280 showOnFilter4283 hideOnFilter2799 hideOnFilter278 hideOnFilter4285 hideOnFilter4275 hideOnFilter4279 hideOnFilter2699 hideOnFilter282" style="white-space: nowrap;">
    Joghurtremoulade&nbsp;<small><sup>[Ei, Gl, GlW, Lac, Mi]</sup></small>
</span>
<span>, </span>
<span class="showOnFilter4285 showOnFilter4281 showOnFilter4275 showOnFilter4279 showOnFilter4277 showOnFilter280 showOnFilter4283 hideOnFilter2799 hideOnFilter278 hideOnFilter2699 hideOnFilter282" style="white-space: nowrap;">
    Kartoffelsalat&nbsp;<small><sup>[Sf]</sup></small>
</span>
<span>, </span>
<span class="showOnFilter4285 showOnFilter4281 showOnFilter4275 showOnFilter4279 showOnFilter4277 showOnFilter280 showOnFilter4283 hideOnFilter2799 hideOnFilter278 hideOnFilter2699 hideOnFilter282" style="white-space: nowrap;">
    Karottensalat
</span>

List of mensas/IDs can be found here:
https://studiplus.stw-ma.de/api/app/mensas

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.