0

Twitter 検索 API を使用しextended_modefull_text属性も組み込みましたが、まだ API から切り捨てられた文字列を取得しています。

これが私のコードです:

results = t.search(q='tuberculosis', count=50, lang='en', result_type='popular',tweet_mode='extended')
all_tweets = results['statuses']

for tweet in all_tweets:
        tweetString = tweet["full_text"]
        userMentionList = tweet["entities"]["user_mentions"]
        if len(userMentionList)>0:
            for eachUserMention in userMentionList:
                name = eachUserMention["screen_name"]
                time = tweet["created_at"]
                wks.insert_rows(wks.rows, values=[tweetString, name, time], inherit=True)
    
4

1 に答える 1