Fixed the for loop key and how to access the user name. #201

Merged
rubenvarela merged 1 commit from fix-search_results.py into master 2013-05-29 08:39:10 -07:00
Showing only changes of commit 464360c7f7 - Show all commits

View file

@ -7,6 +7,6 @@ try:
except TwythonError as e: except TwythonError as e:
print e print e
for tweet in search_results['results']: for tweet in search_results['statuses']:
print 'Tweet from @%s Date: %s' % (tweet['from_user'].encode('utf-8'), tweet['created_at']) print 'Tweet from @%s Date: %s' % (tweet['user']['screen_name'].encode('utf-8'), tweet['created_at'])
print tweet['text'].encode('utf-8'), '\n' print tweet['text'].encode('utf-8'), '\n'