I try to scrape tweets using the twittR packages and am receiving the following error:
Based on the output I tried everything which was outlined here: TwitteR setup_twitter_oauth() failing. However, non of its working (including: devtools::install_github("jrowen/twitteR", ref = "oauth_httr_1_0"))
When I try this alternative I get:
packages <- c("twitteR", "openssl")
### checking if packages are already installed and installing if not
for(i in packages){
if(!(i %in% installed.packages()[, "Package"])){
install.packages(i)
}
library(i, character.only = TRUE) ## load packages
}
And then run:
setup_twitter_oauth(consumer_key, consumer_secret)
I get the following error:
Error in init_oauth1.0(self$endpoint, self$app, permission = self$params$permission, :
Unauthorized (HTTP 401).
And I assume this has something to do with the root cause. Any thoughts on where I can get rid of this problem?