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
1
vote
3 answers

rtweet create_token missing value where TRUE/FALSE needed

So I have been collecting tweets for some months on an external Linux Centos 7.6.1810 server but for some reasons, I can not do it anymore. So my code is consumer_key = 'xxx' consumer_secret = 'xxx' access_token = 'xxx' access_secret =…
K.Hua
  • 769
  • 4
  • 20
1
vote
1 answer

name to twitter user name using R

I have a list of local election candidates and I would like to find out (i) if these individuals have a twitter account (ii) if so what are their screen names/ user names. search_users seemed to be the best option but it does not do a good job.…
1
vote
1 answer

Extracting Retweets with get_retweets Using 'rtweet'

I have collected a dataset of tweets that are original (not a retweet) but has been retweeted for at least once. For this dataset of 6,000 original tweets, I'm trying to collect 30 retweets for each of them by using the get_retweets function from…
1
vote
0 answers

Post_list function in Rtweet package

Is the post_list function in the rtweet package no longer in existence? The documentation shows it as a function but I get the error message that the function doesn't exist when I try to use it? I am trying to use a list of Twitter handles to create…
1
vote
0 answers

Cannot get Character Encodings right with rtweet and RMeCab tokenizer

I am trying to text mine Japanese Tweets and am running into seemingly unsolvable Issues with character encodings. After mining the tweets and setting locale with Sys.setlocale("LC_ALL", "Japanese_Japan.932") I get a dataframe that looks as…
DataWiz
  • 401
  • 6
  • 14
1
vote
1 answer

Scheduling rtweet::stream_tweets() in R

Attached code works fine for me when manually running it after restarting windows and R - but not when scheduling the task with taskscheduleR package (stops immediately after it starts running, creates file but no content). Might be related to some…
Robert
  • 133
  • 10
1
vote
4 answers

Count occurrences of multiple strings in one character variable

I have a dataset of tweets downloaded with rtweet. And i'd like to see how many times three different strings occur in the variable x$mentions_screen_name. The key thing I'm trying to do is do a count of how many times 'A' occurs, then 'B', then…
spindoctor
  • 1,719
  • 1
  • 18
  • 42
1
vote
2 answers

How to keep downloading tweets with rtweet package but also being able to use R Studio for other tasks

Have just installed the rtweet package and have started downloading tweets. I want to collect tweets that contain the word corruption for the next 20 weeks. However the streaming and downloading of tweets keeps R busy and I can not use it for other…
Vrooshi
  • 11
  • 1
1
vote
0 answers

Setting up rtweet for R in AWS Ubuntu server

for my local computer, I have managed to go through the authentication process for a Twitter app as described on http://rtweet.info/ (Section "API authorization".): The first time you make an API request—e.g., search_tweets(), stream_tweets(),…
Oliver
  • 441
  • 6
  • 14
1
vote
2 answers

GET friendships/show with rtweet

I tried to find a way to use the rtweet package to perform a request to GET friendships/show from the Twitter REST API, in order to analyse the relationship between two users. However, I could not make it work (I did find lookup_friendships(), but…
captain
  • 543
  • 1
  • 3
  • 20
0
votes
1 answer

Error 403 and 401 when trying to retrieve tweets with R. Twitter API

I have pretty basic knowledge in R. A few months ago, I used this simple code with the package Rtweet to retrieve tweets using my credentials of the Twitter API. library(rtweet) library(igraph) library(tidyverse) token <- create_token( app =…
0
votes
0 answers

rtweet problem: authentication fails in user_oauth2

I am trying to pull tweets using rtweet. I have basic-level developer access. I am using the following code: require(httr) library(httpuv) library(base64enc) require(rtweet) client <- rtweet_client(client_id= "xxxxxxxxxxxxxxxxxxx", …
user1807435
  • 35
  • 1
  • 6
0
votes
1 answer

Problem with Oauth2 authentication in rtweet

I'm having some problems implementing OAuth2 authentication with the rtweet library, when I try to start the process I get the error "The default rtweet client is no longer authorized." client <- rtweet_client(app = "app_name") (I have tried with…
Jorge Pradas
  • 83
  • 1
  • 6
0
votes
1 answer

Authentication Error with R retweet package

I have academic access to Twitter. Since the Twitter policy changes, I cannot authenticate (I was able to do so before, using the default authentication method). Since the default authentication method no longer works, I am using the app…
0
votes
0 answers

How to access Twitter media urls using academictwitteR?

I have a Twitter API for Academic Research and would like to retrieve the media urls (images and videos) from tweets in R using the academictwitteR package. This is possible using the rtweet package. See an example below: Using…
Gion Mors
  • 313
  • 1
  • 3
  • 20