我怎样才能让 tweepy 返回实际的推文,我的意思是它应该以人类可读的格式显示推文?
我不希望它返回这样的推文:
<tweepy.models.Status object at 0x95F1ABPo>
代码
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))