Matze420 commited on
Commit
1948ed1
·
1 Parent(s): 274ab08

Delete pages/website_to_pdf.py

Browse files
Files changed (1) hide show
  1. pages/website_to_pdf.py +0 -23
pages/website_to_pdf.py DELETED
@@ -1,23 +0,0 @@
1
- from weasyprint import HTML
2
- import streamlit as st
3
- from transformers import pipeline
4
- import datetime
5
- import pandas as pd
6
- from pathlib import Path
7
-
8
- st.set_page_config(
9
- page_title="Impressum",
10
- layout="wide",
11
- initial_sidebar_state="expanded",
12
- )
13
-
14
- st.markdown("# Impressum")
15
- st.sidebar.markdown("# Impressum")
16
-
17
- url = "https://www.bbk.bund.de/DE/Das-BBK/Das-BBK-stellt-sich-vor/Das-deutsche-Bevoelkerungsschutzsystem/das-deutsche-bevoelkerungsschutzsystem_node.html"
18
-
19
- def res(url):
20
- HTML(url).write_pdf("sample.pdf")
21
-
22
-
23
- res(url)