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

for loop with function that also sleeps after nrows [R]

I am using rtweet to lookup_users for a very large number of accounts (>900,000). This function returns up to 90,000 users and then there is a rate limit, which only resets after 15 minutes. How do I build a for loop that iterates over the first…
mundos
  • 459
  • 6
  • 14
0
votes
2 answers

How can I collect tweets from within the last seven days using rtweet package?

I have started using rtweet package and so far, I have had good results for my queries, languages and geocode parameters. However, I still do not know how can I collect twitter data from within the last 7 days. For example in the next code chunk I…
0
votes
1 answer

R rtweet: search_tweets loop does not continue if no results returned for a given Twitter handle

I have a dataframe of Twitter handles. When I loop over the handles using the search_tweets function, the loop stops collecting tweets if one of the Twitter handles does not return any results. I would like to construct the loop such that if no…
Varun
  • 1,211
  • 1
  • 14
  • 31
0
votes
1 answer

Getting followers of multiple Twitter Users via rtweet

I am using rtweet package by Michael W. Kearney and trying to get the followers list of multiple users. So far it works beautifully if I wish to scrap the followers of one user at a time irrespective of the number of followers he/she may have. But…
0
votes
1 answer

Filtering Data From Scraped Tweets Using rtweet Package

meta_mueller <- search_tweets("mueller", n = 250000, retryonratelimit = TRUE) Within the dataframe is a column "geo_coords". A majority upon visual scan are c(NA,NA). I have dplyr installed (other packages are fine, too) and I want to identify any…
0
votes
1 answer

rate_limit() returns wrong reset time

rate_limit() from rtweet returns wrong value in column reset. Instead of showing 15, it shows values around 14.59. It varies between 14.59 and 14.61. I think it is not a problem with rtweet package but probably with either my system or time I have…
Mikolaj
  • 61
  • 7
0
votes
0 answers

Rtweet package installation issue

Recently Twitter changed its characters limits from 140 to 280. I'm trying to install package rtweet becuase with TwitteR shows only the first 140 characters of the entire tweet. Running the command: install.packages("rtweet") results in the…
0
votes
2 answers

No Twitter authorization prompt when using rtweet package

When using rtweet, I am not prompted to sign into twitter at any point. As a result I receive a : Error: is.request(signed_req) is not TRUE error. Any suggestions on how to overcome this issue? I have been following the getting started examples on…
0
votes
1 answer

how to insert any twitter user profile link while composing a tweet

I try to search a lot but did not get any solution, please help me with this. how do i insert any twitter user profile link while composing a tweet, its almost like mentioning someone but it shows a twitter user avatar & name just like in this tweet…
Amir Khan
  • 3
  • 1
0
votes
0 answers

For each search_tweets() call how many time API call to twitter is made, does it depend on number of tweets fetched?

I'm new to R programming or twitter API's. When I'm running the following piece of code: #https://cran.r-project.org/web/packages/rtweet/index.html #http://127.0.0.1:1410 #Twitter Data Analysis twitter_packages <- c("rtweet","httpuv") ### checking…
served_raw
  • 92
  • 5
0
votes
1 answer

rtweet giving error in rbind when collecting large numbers of tweets

I'm using the rtweet package in R to pull tweets for data analysis. When I run the following line of code requesting 18,000 tweets, everything works fine: t <- search_tweets("at", n=18000, lang='en', geocode='-25.609139,134.361949,3500km',…
DrPaulVella
  • 391
  • 8
  • 22
0
votes
1 answer

Inserting text automatically into search_tweets function in r

I am trying to use the function search_tweets, but instead of manually inputing the query, I have it in a dataframe. Is there a way were the function can read the text from the dataframe? Here is my code Retweeters1 <- search_tweets(Tweet2, n=100),…
0
votes
2 answers

How to get all the Twitter followers ids (> 75000) of a user using pagination in R with rtwitter library?

I need a function to get all the followers (or friends) ids of a user in a data.frame with more than 75000 followers (or friends, above Twitter API limit) using the rtwitter library. I first tried the next_cursor documentation help example: #…
Guz
  • 387
  • 3
  • 21
0
votes
2 answers

rtweet error message "data is not a data frame"

I am trying to use the rtweet package but get the following message when trying to use the search_tweets() function like so: x <- search_tweets(q="football", n=100) Searching for tweets... Collected tweets! Error: data is not a data frame I…
moman822
  • 1,904
  • 3
  • 19
  • 33
-1
votes
1 answer

Error in `default_cached_auth()`: ! No default authentication found. Please call `auth_setup_default()`

I am doing a basic Twitter sentiment analysis in RStudio: I already have a Twitter developer account. Below is the code for getting the tweets: title: "Twitter" output: html_document knitr::opts_chunk$set(echo = TRUE) library(rtweet) # Twitter…
Javier
  • 31
  • 3
1 2 3
13
14