How to get full RT tweet text with academictwitteR package?

Caio Scaravajar

I'm trying to get all tweets and retweets mentioning Obama or Trump from a certain period of time with the academictwitteR package. The problem I'm facing is that every retweet comes with "..." instead the full text (desired output). This is the code I'm using to do this.

  variable <-
      get_all_tweets(
        query = c("Obama", "Trump"),
        start_tweets = "2010-01-01T00:00:00Z",
        end_tweets = "2022-05-11T00:00:00Z",
        n = 100000)

I've done some research and I've found this post (When I use the package AcademicTwitterR and function 'get_all_tweets' it seems to return the shortened version of the original tweet), where is asked how to avoid shortened tweets, with academictwitteR package, but i didn't understood the answers with implementations of the solution. For eg., this code is showed as a solution: bind_tweets(data_path = "tweetdata") %>% as_tibble I don't know where to put it in my code. Can anyone show me a full code example to deal with this problem?

lhs

The idea is to download the tweets as json instead of immediately binding them into a dataframe, which apparently truncates the retweets.

variable <-
      get_all_tweets(
        query = c("Obama", "Trump"),
        start_tweets = "2010-01-01T00:00:00Z",
        end_tweets = "2022-05-11T00:00:00Z",
        n = 100000,
        data_path = "tweetdata",
        bind_tweets = FALSE)

Then the raw data can be pulled in with:

tweet_data <- bind_tweets(data_path = "tweetdata", output_format = "raw")

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to get full tweet text in retweets (not using tweepy!)?

How to get tweet text from Adapters?

How to retrieve full text from tweet using twarc2

Save full text of a tweet with tweepy

How to get debuginfo package for -rt kernel

how to get the full tweet of the user timeline with twitter4j?

Ruby Twitter, Retrieving Full Tweet Text

Getting full tweet text from "user_timeline" with tweepy

how to get Full text using Tweepy

Twitter4j - quote tweet with full 280 characters for user text without url on quoted tweet

How to store only the text of tweet using Tweepy

How to use BeautifulSoup 4 to extract Tweet text?

How to get the full name of the .deb package in command output

How can I get full package names from sdkmanager --list?

Pulling full content of a tweet

SQL Query : How to Get tweet from following?

How to get an image from a tweet using tweepy

How can I get the details of a tweet?

How to get the date and the hashtag by date in a tweet?

How to get the content of a tweet using web scraping

How to get usernames with a tweet search query

Twitter API how to get the latest tweet | Python

How to get full text of get-member cmdlet ( particularly the definition )

Get ListViewItem text by index WP RT

Where to get full source code for rt.jar?

How can I get the full text of the active window in an SSMS addin?

How to get certain words from a text with full sentences in PHP?

How to get documents in a response of Full text search query against Couchbase?

How to use Nokogiri to get the full HTML without any text content