{
'contributors': None,
'truncated': False,
'text': #'推文内容'#
'in_reply_to_status_id': None,
'id': 21041793667694593,
'_api': <tweepy.api.api object="" at="" 0x6bebc50="">,
'author': <tweepy.models.user object="" at="" 0x6c16610="">, #推文作者(user object)#
'retweeted': False, #是否被锐推#
'coordinates': None,
'source': '',
'in_reply_to_screen_name': None,
'id_str': '21041793667694593',
'retweet_count': 0,
'in_reply_to_user_id': None,
'favorited': False,
'retweeted_status': <tweepy.models.status object="" at="" 0xb2b5190="">,
'source_url': 'http://mytopfollowersin2010.com',
'user': <tweepy.models.user object="" at="" 0x6c16610="">,
'geo': None,
'in_reply_to_user_id_str': None,
'created_at': datetime.datetime(2011, 1, 1, 3, 15, 29),
'in_reply_to_status_id_str': None,
'place': None
}
示例代码,获取当前timeline
import tweepy
tweets=[]
#auth
auth=tweepy.OAuthHandler(consumer_key,consumer_secret)
auth.set_access_token(access_token,access_token_secret)
#api
api=tweepy.API(auth)
#tweet=api.me().timeline()
#timeline
tweet=api.home_timeline()
for t in tweet:
tweets.append("@"+t.author.screen_name+":"+t.text) #model.status.author is model.user ojbect
输出
@TheModernChina:Illustrations http://t.co/9BB6K9mNVF
@MianMaoKu:I'm at 铁屋 http://t.co/Oi15xhYiio
@buliuxingying:我才看到180多集,欠债太多了〜RT“@standritsu: 这周柯南中灰原哀露出内裤的瞬间收视达45%,直逼半泽直树... http://t.co/3qAJM22VnW”
@TheModernChina:Extendus http://t.co/uJHngAHBZc