Skip to content

Instantly share code, notes, and snippets.

@sjl
Created November 1, 2010 19:05
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 sjl/658689 to your computer and use it in GitHub Desktop.
Save sjl/658689 to your computer and use it in GitHub Desktop.
A command-line client for A Feed Apart
import json, time, urllib
n = 0
while 1:
try:
resp = json.load(urllib.urlopen('http://afeedapart.com/u/%s' % n))
except ValueError:
time.sleep(1)
continue
n = resp['current']
for tweet in (i['content'] for i in resp['items'] if i['type'] == 'tweet'):
print u'@%s: %s' % (tweet['user']['screen_name'], tweet['text'])
print '-' * 10
@jeremybatesDC
Copy link

meow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment