embed videos tutorial 10

This commit is contained in:
zeroth 2021-07-25 18:09:55 +01:00
parent 5fe7931c68
commit 8dbb32db8a

View File

@ -1259,7 +1259,20 @@ def tutorial_6():
######################### TUTORIAL 10 TEST
@app.route("/tutorial_10")
def tutorial_10():
url="https://daap.bannerrepeater.org/w/index.php?title=Tutorial_10&action=render"
# Make a GET request to fetch the raw HTML content
html_content = requests.get(url).text
# Parse the html content
soup = BeautifulSoup(html_content, "lxml")
# print(soup.prettify()) # print the parsed data of html
text=soup.find("html")
text=Markup(text)
# print(text)
return render_template('tutorials.html', text=text)