pablobarbera / streamR

Dev version of streamR package: Access to Twitter Streaming API via R
http://cran.r-project.org/web/packages/streamR/
107 stars 47 forks source link

parseTweets() not capturing complete text of tweet if it is a retweet. #11

Open praneethkvs opened 7 years ago

praneethkvs commented 7 years ago

@pablobarbera

The text field in the output of parseTweets() is not capturing the whole content of a tweet, especially if it is a retweet. I ended up with almost half of the tweets abruptly ending in "...".

I can get the complete content of the text only if i parse it using the "rjson" and then extracting it using tweet$retweeted_status$text . Is this because of the new extended tweets feature in twitter ?

pablobarbera commented 7 years ago

Hi @praneethkvs . Thanks for opening the issue. This is what the API returns -- the 'text' field in any tweet that is a retweet follows this format, and this has been the case for a while now. I'm reluctant to make any changes to the package because this is the expected behavior, but as you mention, you can also use 'readTweets' and then extract the specific fields that you're interested in.