fix html text output
This commit is contained in:
@@ -9,29 +9,29 @@ def suppe(url):
|
|||||||
|
|
||||||
# bistros
|
# bistros
|
||||||
def sbar():
|
def sbar():
|
||||||
return suppe("https://sbar-greifswald.de").find('table').text
|
return str(suppe("https://sbar-greifswald.de").find('table'))
|
||||||
|
|
||||||
def grangusto():
|
def grangusto():
|
||||||
return f'<img width=100% src={suppe("https://gran-gusto.de/wochenmenue-kiga/").find("img", class_="img-with-animation")["src"]}>'
|
return f'<img width=100% src={suppe("https://gran-gusto.de/wochenmenue-kiga/").find("img", class_="img-with-animation")["src"]}>'
|
||||||
|
|
||||||
def sternwarte():
|
def sternwarte():
|
||||||
return suppe("https://www.pommerscher-diakonieverein.de/produkte-dienstleistungen/gastronomie-hotellerie/bio-bistro-alte-sternwarte/").find("div", class_="ce-week-menu").text
|
return str(suppe("https://www.pommerscher-diakonieverein.de/produkte-dienstleistungen/gastronomie-hotellerie/bio-bistro-alte-sternwarte/").find("div", class_="ce-week-menu"))
|
||||||
|
|
||||||
def lichtblick():
|
def lichtblick():
|
||||||
return suppe("https://www.pommerscher-diakonieverein.de/produkte-dienstleistungen/gastronomie-hotellerie/lichtblick-cafe-und-restaurant").find("div", class_="ce-week-menu").text
|
return str(suppe("https://www.pommerscher-diakonieverein.de/produkte-dienstleistungen/gastronomie-hotellerie/lichtblick-cafe-und-restaurant").find("div", class_="ce-week-menu"))
|
||||||
|
|
||||||
def cafekarsten():
|
def cafekarsten():
|
||||||
return suppe("https://cafekarsten.de/").find("div", class_="lg:grid-cols-2").text
|
return str(suppe("https://cafekarsten.de/").find("div", class_="lg:grid-cols-2"))
|
||||||
|
|
||||||
def tierpark():
|
def tierpark():
|
||||||
seite = suppe("https://www.tierpark-greifswald.de/tierpark-cafe.html").find("div", id="tierpark-cafe")
|
seite = suppe("https://www.tierpark-greifswald.de/tierpark-cafe.html").find("div", id="tierpark-cafe")
|
||||||
return list(seite.children)[9].text
|
return str(list(seite.children)[9])
|
||||||
|
|
||||||
def ipp():
|
def ipp():
|
||||||
return suppe("https://www.ipp-kantine.de/").find("div", class_="row").text
|
return str(suppe("https://www.ipp-kantine.de/").find("div", class_="row"))
|
||||||
|
|
||||||
def malanders():
|
def malanders():
|
||||||
return suppe("https://mal-anders-greifswald.dipago.de/").find("div", id="module_303538").text
|
return str(suppe("https://mal-anders-greifswald.dipago.de/").find("div", id="module_303538"))
|
||||||
|
|
||||||
bistros = {
|
bistros = {
|
||||||
"S-Sbar": {"f": sbar, "url": "https://sbar-greifswald.de"},
|
"S-Sbar": {"f": sbar, "url": "https://sbar-greifswald.de"},
|
||||||
|
|||||||
Reference in New Issue
Block a user