Streamlit_Docker / pages /website_to_pdf.py
Matze420's picture
Rename pages/website_to_pdf to pages/website_to_pdf.py
a701ac2
raw
history blame
541 Bytes
from weasyprint import HTML
import streamlit as st
from transformers import pipeline
import datetime
import pandas as pd
from pathlib import Path
st.set_page_config(
page_title="Impressum",
layout="wide",
initial_sidebar_state="expanded",
)
st.markdown("# Impressum")
st.sidebar.markdown("# Impressum")
url = "https://www.bbk.bund.de/DE/Das-BBK/Das-BBK-stellt-sich-vor/Das-deutsche-Bevoelkerungsschutzsystem/das-deutsche-bevoelkerungsschutzsystem_node.html"
def res(url):
HTML(url).write_pdf("sample.pdf")
res(url)