Initial commit: What To Cook (WTC) v4.4 - Digitales Kochbuch, Wochenmenueplan & Buchdruck
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
import os
|
||||
|
||||
DIR = "/home/maxi/Projekt/wtc.waiswuaschd.de/data/extracted_texts"
|
||||
files = [
|
||||
"schnelle Ramen.txt",
|
||||
"ramen_rezepte.txt",
|
||||
"Brezen Cracker.txt",
|
||||
"Currytaschen.txt",
|
||||
"Kidneybohnen.txt",
|
||||
"Mango Limetten Triffle.txt",
|
||||
"Orangentofu mit Reis.txt",
|
||||
"Orzo Halloumi Salat.txt",
|
||||
"Schokomousse.txt",
|
||||
"One Pot Mie Nudeln.txt",
|
||||
"Bao Buns mit Champignons.txt",
|
||||
"Lachs in Thai-Curry-Soße mit Zucchini.txt",
|
||||
"Blätterteigpäckchen mit Spargel.txt",
|
||||
"Spaghetti in Zitronenbutter und Lachs mit Macadamiakruste.txt"
|
||||
]
|
||||
|
||||
for fname in files:
|
||||
fpath = os.path.join(DIR, fname)
|
||||
if os.path.exists(fpath):
|
||||
print(f"==================================================")
|
||||
print(f"FILE: {fname}")
|
||||
print(f"==================================================")
|
||||
with open(fpath, "r", encoding="utf-8", errors="replace") as f:
|
||||
print(f.read())
|
||||
print("\n")
|
||||
else:
|
||||
print(f"FILE NOT FOUND: {fname}")
|
||||
Reference in New Issue
Block a user