add files
This commit is contained in:
11
src/logic/get_pdf_content.py
Normal file
11
src/logic/get_pdf_content.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import tabula
|
||||
|
||||
|
||||
file="files/Semesterapparat - Anmeldung.pdf"
|
||||
|
||||
def extract_book_data(file):
|
||||
tables=tabula.read_pdf(file,pages="all",encoding="utf-8",multiple_tables=True)
|
||||
tabula.convert_into(file, file.replace(".pdf"), output_format="csv", pages="all")
|
||||
with open("files/Semesterapparat - Anmeldung.csv", "r") as f:
|
||||
content=f.read()
|
||||
|
||||
Reference in New Issue
Block a user