starting to get some work done

This commit is contained in:
Beppe Vanrolleghem
2018-05-23 18:10:00 +02:00
parent 0099a040b7
commit 6df24808ba
405 changed files with 147701 additions and 13474 deletions

12
jsonCombiner.py Normal file
View File

@@ -0,0 +1,12 @@
import sys, os
folder = sys.argv[1]
strDataStruct = '{"Episodes":['
for file in os.listdir(folder):
print(file)
if(file.endswith('.json')):
with open(folder+"/"+file, "r") as infile:
strDataStruct=strDataStruct+infile.read()+","
strDataStruct=strDataStruct[:len(strDataStruct)-1]+"]}"
with open("OUTPUTFILE.json", "w+") as outfile:
outfile.write(strDataStruct)