Tweet content is truncated when is loaded via twitteR package

I'm trying to download posts from Twitter using twitteR with following code:

library(twitteR)

consumer_key = "..."
consumer_secret = "..."
access_token = '...'
access_secret = '...'

setup_twitter_oauth(consumer_key, consumer_secret, access_token, access_secret)

u = getUser('realDonaldTrump')
tl = userTimeline(u, n = 3200)
d = twListToDF(tl)

Tweets downloaded this way are truncated. For example: t.co/UxBD2DBv2G is downloaded as: Can’t wait to be back in the amazing state of Tennessee to address the 99th American @FarmBureau Federation’s Annua….

Is is possible to download whole tweets contents?

Upvotes: 2

Views: 705

Answers (2)

anon
anon

Reputation:

Add the tweet_mode=extended parameter to your API call.

Upvotes: 1

laaksom
laaksom

Reputation: 2210

Check out the documentation regarding twitter entities.

https://developer.twitter.com/en/docs/tweets/data-dictionary/overview/entities-object

Upvotes: 0

Related Questions