IPython notebook to play with Citi Bike data
wakari.io
wakari.io
def currently_available_bikes(): !curl https://citibikenyc.com/stations/json > latest.json stats = json.loads(open("latest.json").read()) available_count = bikes_available_for_set(stats) print "there are currently %r bikes in stations" % available_count currently_available_bikes()
That's the code block that I use to figure out how many bikes are currently available. I pull from stations/json url.