1

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(), get_followers()—a browser window will open.
  • Log in to your Twitter account.
  • Agree/authorize the rtweet application.

I do struggle, however, with the process for my Ubuntu server on AWS. As I do not have a graphical interface (ssh access only), I can only try to go through the process as follows:

  1. Being on my computer, pointing the browser to the AWS server's address in order to run the "RStudio server software" that is installed on the AWS server. Doing that, the last step - the redirect - results in a browser message stating "Unable to connect Firefox can’t establish a connection to the server at localhost:1410."; the R console keeps hanging an waiting for input:

enter image description here

  1. Being on the Ubuntu server's shell I tried and failed to going through the process producing the following error message: "> rt <- search_tweets( "Mark Fletcher", n = 5000, include_rts = FALSE) Error in httpuv::startServer(use$host, use$port, list(call = listen)) : Failed to create server"

Would there be another way of doing that without having to rely on a browser running locally on the computer for which we want to do the authorization?

Thanks,

Oli

Oliver
  • 441
  • 6
  • 14
  • 1
    the docs show how to save off creds and re-use them in other environments. – hrbrmstr Dec 20 '17 at 17:38
  • I have actually overlooked the vignette describing that. Many thanks indeed. – Oliver Jan 11 '18 at 15:24
  • I've also (since your q) made [21 Recipes for Mining Twitter Data with rtweet](https://rud.is/books/21-recipes/) that might also be useful. – hrbrmstr Jan 11 '18 at 18:51

0 Answers0