Browse Source

embed videos tutorial 10

master
zeroth 3 years ago
parent
commit
8dbb32db8a
  1. 13
      daapinterface.py

13
daapinterface.py

@ -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)

Loading…
Cancel
Save