R for Beginners: Creating a Twitter App for Scraping Data

February 14, 2017

(This article was first published on R – Traversing Bits, and kindly contributed to R-bloggers)

Creating an app is one of the most important steps in scraping data using R packages like twitteR. You need the following key information to create the connection to Twitter API using R.

  1. Consumer key
  2. Consumer secret
  3. Access token
  4. Access token secret

Creating a Twitter app can be confusing if you’re a beginner to R. You can follow the steps below to create a Twitter app and get the above information.

Step 1: Go to https://apps.twitter.com/

Step 2: Enter the details (e.g., name for your app, description, a website url (where users can access your app).

Step 3: Create the app and obtain keys and access tokens.

If you follow the above steps correctly. You’ll receive the following message confirming that the app has been created. You can access your keys and access token after this.

Once you create the app successfully, you can see that a new app has been added to your Twitter apps. You can see this in your Twitter settings.

Chamil Rathnayake

The post R for Beginners: Creating a Twitter App for Scraping Data appeared first on Traversing Bits.

To leave a comment for the author, please follow the link and comment on their blog: R – Traversing Bits.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...

If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.

Search R-bloggers


Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)