An error occurred while loading the file. Please try again.
-
Rémy Decoupes authored1a1fa27d
Forked from an inaccessible project.
# from https://gist.github.com/mbrzusto/23fe728966247f25f3ec
import json
import ast
fr = open("/home/rdecoupe/mood-tetis-tweets-collect/output/tweetoutput20200622-093342.jsonl")
fw = open("/home/rdecoupe/mood-tetis-tweets-collect/output.doublequote/tweetoutput20200622-093342.jsonl", "w")
for line in fr:
json_dat = json.dumps(ast.literal_eval(line))
dict_dat = json.loads(json_dat)
json.dump(dict_dat, fw)
fw.write("\n")
fw.close()
fr.close()