add pommerngrün

This commit is contained in:
fordprefect
2022-03-03 15:09:12 +01:00
parent 2ae6135180
commit 88a0a7525f

View File

@@ -61,6 +61,21 @@ def ipp():
def malanders(): def malanders():
return str(suppe("https://mal-anders-greifswald.dipago.de/").find("div", id="dP_sidebar-area")) 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 = { bistros = {
"S-Sbar": {"f": sbar, "url": "https://sbar-greifswald.de"}, "S-Sbar": {"f": sbar, "url": "https://sbar-greifswald.de"},
"Gran Gusto": {"f": grangusto, "url": "https://gran-gusto.de/wochenmenue-kiga"}, "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"}, "Tierparkcafe": {"f": tierpark, "url": "https://www.tierpark-greifswald.de/tierpark-cafe.html"},
"IPP-Kantine": {"f": ipp, "url": "https://ipp-kantine.de"}, "IPP-Kantine": {"f": ipp, "url": "https://ipp-kantine.de"},
"Mal Anders": {"f": malanders, "url": "https://mal-anders-greifswald.dipago.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: with open("index.html", "w") as f: