R for Beginners: Creating a Twitter App for Scraping Data

[This article was first published on R – Traversing Bits, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

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 about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

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)