I've this Python code that allows me to collect data from Todoist API. Now I want to store this data into a Dictionary in order to make some data processing and some advanced analytics. Using this code how can I store this values into the structure ?
from pytodoist import todoist user = todoist.login('####','""""') projects = user.get_projects() for project in projects: print(project.name) tasks = user.get_tasks() for task in tasks: print("Project: ", task.project.name, ", Task: ", task.content, ", Date: ", task.date_string, ", Priority: ", task.priority, ", Added in: ", task.date_added)
My key_pais: The strings that I've in For loop "Project", "Task", etc. Values: the values from taks
JSON objectas JSON is in short dictionary with multiple levels $\endgroup$