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

How can I add a vertical line to a ts_plot?

I have downloaded a timeline from a twitter user and try to visualise the number of tweets over time. I'm doing it with rtweets ts_plot. Now I'm trying to add a vertical line in my graph. As far as I know ts_plot allows you to work with it as if it…
bgf
  • 11
  • 3
0
votes
1 answer

Can I get more than 3200 tweets from a user with "rtweet"?

I'm using rtweet's function get_timeline to download tweets. However, some of the users I'm interested in have way more than the 3200 tweets you are allowed to download (some have around 47'000). There is the "retryonratelimit" argument, if you are…
bgf
  • 11
  • 3
0
votes
0 answers

Attempting to determine if large Twitter API query using 'rtweet' is still actually downloading

I am attempting to download every instance of a hashtag (#Venture) using the R package rtweet` and am seeing a messaging indicating that the data is downloading but stopping at 16% with the progress bar unfinished. I understand the API limits a…
ThomasPepperz
  • 176
  • 11
0
votes
1 answer

No search results for a # that really exists

I am analysing #angtunaynalalake or #AngTunayNaLalake - a tweet that is famous in the Philippines. I run the following code but there are 0 results. I tried the same code using other famous #s like #MeToo or as #rstats and the code was successful. I…
Erwin
  • 71
  • 6
0
votes
1 answer

Issues with scheduling... Using tasksheduleR to run R script using rtweet and exporting to postgreSQL table

I am trying to schedule an R script to run, using rtweet to hit the Twitter API and then using RPOSTgreSQL to load the data into a table once a day. I was able to successfully use taskscheduleR to create the task. However, when it runs I get an…
Marc
  • 11
  • 2
0
votes
2 answers

Returning Twitter handles per dataframe row

Given the following dataframe: df <- as.data.frame(c("Testing @cspenn @test @hi","this is a tweet","this is a tweet with @mention of @twitter")) names(df)[1] <- "content" I'm trying to extract the individual twitter handles per row, instead of all…
Christopher Penn
  • 539
  • 4
  • 14
0
votes
1 answer

search_tweets with UTF8 query in windows command line returns 0 output

I have a script to scrape tweets using rtweet package in R. i am using the following code. rt <- search_tweets( q = ("اجرک"), n = 5000, include_rts = FALSE, geocode = lookup_coords(), parse = TRUE, lang = 'ur', retryonratelimit =…
Shakir
  • 343
  • 5
  • 23
0
votes
1 answer

Searching for new tweets on Twitter using RTweet's search_tweets() function

I am switching from using twitteR to Rtweet to automatically search Twitter for new tweets (twitteR seems to truncate the text at 140 characters).The searchTwitter() function in the twitteR package contained a sinceID argument that allowed me to…
B_alban
  • 1
  • 1
0
votes
0 answers

Decoding unicode in tweets in R

In my tweets, I am getting Unicode in angular brackets as: "U+0001F602" Loved my flip phones I want unicode in the format: \U0001F602. I used rtweet package for retrieving tweets. I am new in this area. I want to know can we filter out Retweets…
user1992989
  • 77
  • 1
  • 10
0
votes
0 answers

What's the best way to store tweets {rtweet}

How to store tweets such that when imported, all the details and column formatting remains the same. library(rtweet) tw1 <- search_tweets("RStats", n = 10000) Next week: tw2 <- search_tweets("RStats", n = 10000) tweets <- dplyr::bind_rows(tw1,…
Masood Sadat
  • 1,247
  • 11
  • 18
0
votes
1 answer

R: r tweets: Error: can only select one search type. Try type = 'recent'

I am using 'rtweet' package to collect tweets by location. rt <- search_tweets( "lang:en", lookup_coords("san francisco, CA", "country:US"), n = 10000 I get the following error when I mention city, state and country. Error: can only select…
Hackerds
  • 1,195
  • 2
  • 16
  • 34
0
votes
1 answer

Trying to run cronjob to build a list of Twitter User IDs

I am trying to build a list of Twitter User IDs (also collecting bio descriptions, location and a few other parameters). I would like to set up a cronjob to have this code running and collecting information from the Twitter API everyday for a…
Emm
  • 2,367
  • 3
  • 24
  • 50
0
votes
0 answers

get_timelines doesn't return 3,200 latest tweets

I am currently using rtweet to gather the timelines of a number of German politicians. While doing so, I ran into the problem that while for some (with more than 3,200 tweets) I was able to gather the full number of the 3,200 most recent tweets,…
0
votes
1 answer

Does the rtweet library have a way to fetch tweets from a specific location?

I am trying to get tweets that were tweeted from a specific location e.g. 'LA' using the rtweet package. I know the twitteR package used to have something of the sort like: a<-searchTwitter("sydney", n=100, geocode='-33.871841,151.206709,…
kanataki
  • 433
  • 2
  • 21
0
votes
1 answer

Error : Not all elements of twList are of the same class, when I convert the tweets with all variables to dataframe

I am using rtweet package in R to extract tweets of particular hashtag which basically needs appname,api_key,api_secret,access_token,access_token_secret. So i have created an app in Twitter to get all the above details. And then I pass the above as…
Akash
  • 359
  • 1
  • 7
  • 27