Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

German Dish fetching is broken #257

Closed
Friendly-Banana opened this issue Aug 2, 2024 · 10 comments · Fixed by #263
Closed

German Dish fetching is broken #257

Friendly-Banana opened this issue Aug 2, 2024 · 10 comments · Fixed by #263
Labels
bug Something isn't working

Comments

@Friendly-Banana
Copy link

Friendly-Banana commented Aug 2, 2024

The german detail pages are broken

ARRAY(0x55b990b4bb10)

resulting in empty API responses. The english version still works for some reason

@CommanderStorm
Copy link
Member

Has been reported Upstream, I don't see a fix on our side until StuWerk IT fixes this

Lieber Herr Elsinga,

danke für den Hinweis. Wir gehen der Sache nach. Aktuell arbeiten wir an unserem Kennzeichnungssystem. Es kann also zu Störungen kommen.
https://www.studierendenwerk-muenchen-oberbayern.de/mensa/speiseplan/speiseplan_421_-de.html#heute

Diese URL geht

@COM8 COM8 added the bug Something isn't working label Aug 17, 2024
@Friendly-Banana
Copy link
Author

We could maybe parse the weekly menu from that URL 🤔

@jakobkoerber
Copy link
Member

jakobkoerber commented Sep 10, 2024

https://www.mensaplan.de/garching/mensa-garching/index.html

Interestingly enough this website has no issues displaying the meal plan whatsoever. Without any knowledge about the code base - is there anything we can do on our side? Would be great if we are up and running at the beginning of the new semester 🙂 thank you guys!

@atticus-sullivan
Copy link

Well I for my part, being impatient, started to crawl the current meal plan from the overview page which shows the meal plan of the whole month (not a particular day). Maybe that is what this website is doing (but of course I don't know the codebase either).

@Friendly-Banana
Copy link
Author

This codebase currently crawls only the broken daily pages, it should be fairly easy to just point it at the monthly page and extract multiple days at once.
@jakobkoerber if you're interested in contributing, StudentenwerkMenuParser would need to be changed.

@jakobkoerber jakobkoerber linked a pull request Sep 11, 2024 that will close this issue
@jakobkoerber
Copy link
Member

I created a draft PR #263 that uses the overview page instead of the detail pages in the StudentenWerkMenuParser. Since I am not really familiar with Python nor have the capacity to adjust the tests since I'm also developing for the TCA, it would be great if someone could support me with the development 😄

@Friendly-Banana
Copy link
Author

@jakobkoerber I've fixed the tests and linting issues in my fork.

@jakobkoerber
Copy link
Member

jakobkoerber commented Sep 20, 2024

@jakobkoerber I've fixed the tests and linting issues in my fork.

Nice, thank you! 😄

@jakobkoerber
Copy link
Member

@Friendly-Banana only additional question I have: wouldn't we need to change the assets of the test? They look like the daily pages not the overview we are using now 🤔

@Friendly-Banana
Copy link
Author

The test has both, the individual menu parsing with daily menus and the overview (src/test/assets/studentenwerk/mensa-garching/for-generation/overview.html)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
5 participants