Streamlit_Docker / pages /website_to_pdf
Matze420's picture
Create website_to_pdf
39fcbd1
raw
history blame
251 Bytes
from weasyprint import HTML
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)