2017-11-21 1 views
1

私は以下のコードを実行し、パラメータとしても設定しますtweet_mode='extended'取得したつぶやきの全文を取得しません。誰でも私にそれを解決するのを助けることができますか?ツイートの全文を取得するにはどうすればよいですか?

import tweepy 

consumer_key ='xxxx' 
consumer_secret = 'xxxx' 

access_token = 'xxxx' 
access_token_secret = 'xxxx' 

# create our authentication variable 
auth = tweepy.OAuthHandler(consumer_key, consumer_secret) 
auth.set_access_token(access_token,access_token_secret) 

api = tweepy.API(auth) 

cursor= tweepy.Cursor(api.search,q="obama",tweet_mode='extended', lang="en", date='2017-11-13', days_ago=9).items(5) 

for tweet in cursor: 
    print (tweet.created_at,tweet.full_text) 

以下は、対応する結果です。

2017-11-21 13:55:20 Another one of Obama's poor little underprivileged Black ladies, oppressed by Whites? 
2017-11-21 13:55:20 RT @PoliticalShort: Remember when it was considered immoral to question whether Obama’s 20-year patronage at Wright’s radical church could… 
2017-11-21 13:55:20 RT @IosrscIub: i had a dream that i was trying to find a fruit scale in walmart to weigh my pomegranates and then obama stopped me, took th… 
2017-11-21 13:55:19 @WhereIs_Billy @FoxNews No Ure wrong! He saved them from possible yrs in jail there Dumb Ass! Look Wht happened to Otto cause Racist OBAMA did NOTHING! Mayb all u liberals shld go to N K good bye! No F...... Respect! MAGA MAGA 
2017-11-21 13:55:19 RT @oldhippiebroad: This is no judge. He’s politician all the way. He’s a disgrace. #UraniumOneScandal #LockThemAllUp 

答えて

0

Twitterはリッツイート(RT)の全文を配信していません。

第1回目と第4回目のメッセージが完成したようですが、タイムスタンプの後にRTを持つ他の人たちは、最後に「...」を付けてTwitterで切り捨てました。

最後のRTメッセージは、切り捨てられないほど十分に短いです。

関連する問題