Commit 5c592ea5 authored by Florestan Biaux's avatar Florestan Biaux 💬
Browse files

optimisation getter

parent fa8e3fdf
......@@ -26,7 +26,5 @@ def getfile(name):
os.chdir(path + "/" + conv)
with open("message_1.json") as messages:
data = json.load(messages)
data_str = json.dumps(data)
return data
import tri
import get
import json
if __name__ == "__main__":
# demander le nom de la conv à analyser
name = str(input("Quel est le nom de la conversation à analyser ?"))
# give regex of conversation name
# get json file
data = get.getfile(name) # data = json
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment