In [2]:
import json
from urllib.request import urlopen
import pandas as pd
In [6]:
server_url = 'http://ec2-54-173-30-19.compute-1.amazonaws.com:8000/quixotic_api/'
In [17]:
def call_api(kind):
response = urlopen(server_url + kind + "/")
j = response.read().decode('utf-8')
return pd.DataFrame(json.loads(j))
In [18]:
event_df = call_api('events')
In [26]:
event_df.tail(5)
Out[26]:
In [ ]:
In [20]:
timeblock_df = call_api('timeblocks')
In [21]:
timeblock_df.tail()
Out[21]:
In [22]:
user_df = call_api('users')
In [23]:
user_df.tail()
Out[23]:
In [24]:
projects_df = call_api('projects')
In [25]:
projects_df.tail()
Out[25]: