Reputation: 708
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:
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
Reputation: 2210
Check out the documentation regarding twitter entities.
https://developer.twitter.com/en/docs/tweets/data-dictionary/overview/entities-object
Upvotes: 0