如何才能讓tweepy返回實際的推文,我的意思是它應該以人類可讀格式顯示推文?在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))
status.text不工作。 – picomon 2012-04-23 08:48:35