Skip to content

Instantly share code, notes, and snippets.

@jocap
Created August 13, 2010 13:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jocap/522857 to your computer and use it in GitHub Desktop.
Save jocap/522857 to your computer and use it in GitHub Desktop.
Get the Jaiku timeline with user's API key using the old JSON API: http://api.jaiku.com/key
import urllib, json
url = "http://%s.jaiku.com/contacts/feed/json" % username
params = {'user': username, 'personal_key': api_key}
result = urllib.urlopen(url, urllib.urlencode(params)).read()
data = json.loads(result)
title = data['title'] # Jaiku | Overview
# print timeline
for presence in data['stream']:
print presence['title']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment