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)