Questions tagged [rtweet]

Questions about the R package for interacting with Twitter's API

An implementation of calls designed to extract and organize Twitter data via Twitter’s REST and stream API’s. Functions formulate GET and POST requests and convert response objects to more user friendly structures, e.g., data frames or lists. Specific consideration is given to functions designed to return tweets data from searches, streams, and timelines and user ids from friends and followers lists. More info: rtwitter reference manual.

198 questions
0
votes
1 answer

Write tweets from rtweets package to csv

I'm unable to write tweets from search_tweet() in 'rtweet' package to csv. It throws the following error: Here's a link to the question I previously asked, that has details on the type of search_tweet() object creates: Class and type of object is…
Shreya Agarwal
  • 676
  • 2
  • 8
  • 20
0
votes
1 answer

Class and type of object is different in R. How should I make it consistent?

I downloaded some tweets using 'rtweet' library. Its search_tweets() function creates a list (type) object, while its class is "tbl_df" "tbl" "data.frame". To further work on it, I need to convert this search_tweets() output into a dataframe.…
Shreya Agarwal
  • 676
  • 2
  • 8
  • 20
0
votes
1 answer

Issues with wordcloud when using rtweet

I am currently trying to get a wordcloud in R with a script that worked when I first used it. I am now rechecking my markdown document and got the following issue. I am working with rtweet to create a wordcloud for the amount of tweets on a special…
0
votes
2 answers

When I want to save a data as csv I get an error

Currently i am working with twite data for what i am using the rtweet package. However when i want to save my data i got a poblem with it. I use the following code to get my data: Data1 <- get_timeline("Account1", n = 3200) Data2 <-…
0
votes
1 answer

RTweet: change Twitter account

I've been trying out the Rtweet package, found here: https://github.com/ropensci/rtweet After posting a tweet with the post_tweet() command, I was sent to a browser page and was immediately logged in because of an automatic password program. The…
fliestech
  • 165
  • 2
  • 9
0
votes
1 answer

HTML encode text in R

I am looking at twitter data which I am then feeding into an html document. Often the text contains special characters like emojis that aren't properly encoded for html. For example the tweet: If both #AvengersEndgame and #Joker are nominated for…
Noah Olsen
  • 271
  • 1
  • 14
0
votes
1 answer

Getting more than the number of friends allowed by Twitter API using rtweet

I have written the following script that fetches friends of Twitter users ("barackobama" in this example) in batches of 75,000 (5000 friends per API call x 15 API calls) every 15 minutes using rtweet. However, after the script is done running, I…
wrahool
  • 1,101
  • 4
  • 18
  • 42
0
votes
1 answer

R rtweet search_30day message: Exceeded rate limit

I want to search for any instance of several different hashtag uses from two weeks ago. I went with search_30day() to do so. I expect there to be around 100,000(ish) tweets that I then want to do sentiment analysis later. However, I run the…
Jacob
  • 406
  • 3
  • 19
0
votes
0 answers

How to retrieve more than 90,000 users' data using lookup_users() with rtweet package?

I'm trying to get all user data for the followers of an account, but am running into an issue with the 90,000 user lookup limit. The documentation page says that that can be done by iterating through the user IDs while avoiding the rate limit that…
Auresm
  • 139
  • 8
0
votes
0 answers

rtweet function 'get_friends()' not returning data when user has more than 5000 friends

I am trying to download the list of friends of a certain user on Twitter using rtweet. If I try to download the friends list of a user who has less than 5000 friends, I get the expected result - a list of the user's friends. However, if I try to…
jkrix
  • 15
  • 8
0
votes
1 answer

Can not create create token using package rtweet , something wrong about file '.rtweet_token.rds'

I am using rtweet package to get data from twitter. However,problems happened when I tried to create create_token. The error info is cannot open file 'C:/Users/??/Documents/.rtweet_token.rds': Invalid argument I have tried to set 'set_renv' as…
si li
  • 1
  • 2
0
votes
0 answers

Why does data mined from Twitter behave differently after it has been saved to a dataframe?

I text mined twitter data with the rtweet package, but after saving it to a data frame I am not able to use packages such as ggplot2 to their full potential. What am I doing wrong? I text mined some twitter data using the rtweet library, and did so…
0
votes
0 answers

Is there a way to personalize/define the bbox or latlong of lookup_coords from the rtweet package?

I want to make a Twitter search, specifying the location. I am using the rtweet package. However, when I print the 'lookup_coords' function for the country of Venezuela or the city of Caracas, there are no results. I have followed all advices from…
delViento
  • 157
  • 8
0
votes
1 answer

Parsing fails with big JSON objects (rtweet)

I'm trying to parse big JSON files with the function parse_stream() function from rwteet library. It fails with long JSON objects. This JSON objects tends to generate an error when they have considerable size (200MB-1GB). My stream function looks…
fmigg
  • 21
  • 1
  • 5
0
votes
0 answers

Downloading tweets using rtweet package appears to stop at 8%. Why?

I am using the rtweet package to retrieve tweets on a specific hashtag. My R codes stand as follows: # load rtweet package library(rtweet) ## search for 18000 tweets using the "singapore" hashtag rt <- search_tweets( "#singapore", n = 18000,…
user3115933
  • 4,303
  • 15
  • 54
  • 94