2019-05-04 16:27:50 +02:00
|
|
|
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")
|
2019-05-21 11:54:11 +02:00
|
|
|
with open(file, 'r') as f:
|
|
|
|
print(file)
|
|
|
|
# print(f.readlines())
|
2019-05-04 16:27:50 +02:00
|
|
|
content = f.read()
|
2019-05-21 11:54:11 +02:00
|
|
|
print(content)
|
2019-05-04 16:27:50 +02:00
|
|
|
total.write(content)
|
|
|
|
total.close()
|