From 47bd83c1f87d0d394d4b1e0e47e1f989870afac5 Mon Sep 17 00:00:00 2001 From: Cristina Cochior Date: Sat, 11 Jan 2020 17:47:28 +0100 Subject: [PATCH] removing redundant file --- putallhtmltexttogether.py | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 putallhtmltexttogether.py diff --git a/putallhtmltexttogether.py b/putallhtmltexttogether.py deleted file mode 100644 index e95c2a6..0000000 --- a/putallhtmltexttogether.py +++ /dev/null @@ -1,15 +0,0 @@ -import sys, os - -path = "static/files/" -for path, subdirs, files in os.walk(path): - for name in files: - if name.endswith('html'): - file = os.path.join(path, name) - total = open("allhtml.txt", "a") - with open(file, 'r') as f: - print(file) - # print(f.readlines()) - content = f.read() - print(content) - total.write(content) - total.close()