How can I make tweepy return actual tweets, I mean it should display tweets in human readable format?
I don't want it to return tweets like this:
<tweepy.models.Status object at 0x95F1ABPo>
Codes
def tweetstream(request):
consumer_key=""
consumer_secret=""
access_token=""
access_token_secret=""
auth=tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_token_secret)
api=tweepy.API(auth)
statuses=Cursor(api.list_timeline, owner='', slug='').pages()
for status in statuses:
print status
return render_to_response('dash.html',{'statuses': statuses},context_instance=RequestContext(request))
No comments:
Post a Comment