R for Beginners: Creating a Twitter App for Scraping Data

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

Traversing Bits

Leave a Reply

Your email address will not be published. Required fields are marked *