From 88a0a7525fc2523316faf1524b5cee2c9df12cb2 Mon Sep 17 00:00:00 2001 From: fordprefect Date: Thu, 3 Mar 2022 15:09:12 +0100 Subject: [PATCH] =?UTF-8?q?add=20pommerngr=C3=BCn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- speiseplan.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/speiseplan.py b/speiseplan.py index cd6f68e..6d17c3f 100755 --- a/speiseplan.py +++ b/speiseplan.py @@ -61,6 +61,21 @@ def ipp(): def malanders(): return str(suppe("https://mal-anders-greifswald.dipago.de/").find("div", id="dP_sidebar-area")) +def pommerngruen(): + fullsupp = suppe("https://www.pommerscher-diakonieverein.de/produkte-dienstleistungen/gastronomie-hotellerie/pommerngruen-naturkostladen-bio-imbiss") + menu = fullsupp.find("div", class_="ce-week-menu") + menu.ul.clear() + for n, d in enumerate(menu.find_all("div", class_='tab-pane')): + d.div.div.div.replace_with(fullsupp.new_tag("h3")) + d.div.div.h3.string = days[n] + for i in menu.find_all("img"): + i['src'] = "" + i['height'] = 0 + i['width'] = 0 + for b in menu.find_all("br"): + b.name = "" + return str(menu) + bistros = { "S-Sbar": {"f": sbar, "url": "https://sbar-greifswald.de"}, "Gran Gusto": {"f": grangusto, "url": "https://gran-gusto.de/wochenmenue-kiga"}, @@ -70,6 +85,7 @@ bistros = { "Tierparkcafe": {"f": tierpark, "url": "https://www.tierpark-greifswald.de/tierpark-cafe.html"}, "IPP-Kantine": {"f": ipp, "url": "https://ipp-kantine.de"}, "Mal Anders": {"f": malanders, "url": "https://mal-anders-greifswald.dipago.de"}, + "Pommerngrün": {"f": pommerngruen, "url": "https://www.pommerscher-diakonieverein.de/produkte-dienstleistungen/gastronomie-hotellerie/pommerngruen-naturkostladen-bio-imbiss"}, } with open("index.html", "w") as f: