Created
January 14, 2019 08:45
-
-
Save busbyjon/3f3561869b74a5569aeb8851d1f1de58 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import todoist | |
import pandas | |
api = todoist.TodoistAPI() | |
user = api.user.login('<username>', '<password>') | |
print(user['full_name']) | |
response = api.sync() | |
for project in response['projects']: | |
print(project['name']) | |
df = pandas.DataFrame(response['items']) | |
df['date_added'] = pandas.to_datetime(df["date_added"]) | |
df = df.sort_values("date_added") | |
print df.head() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment