Twitter Credential Setup

Since some spark streaming exercises are based on Twitter’s stream, it is necessary to configure authentication with a Twitter account. To do this, you will need to setup a consumer key+secret pair and an access token+secret pair using a Twitter account. Please follow the instructions below to setup these temporary access keys with your Twitter account.

1) Open Twitter’s Application Settings page. This page lists the set of Twitter-based applications that you own and have already created consumer keys and access tokens for. This list will be empty if you have never created any applications.

Click on the blue “Create a new application” button. The new application page should look the page shown below. Provide the required fields:

2) Once you have created the application, you will be presented with a confirmation page similar to the one shown below. Click on the API Key tab.

3) You should be able to see the API key and the API secret that have been generated. To generate the access token and the access token secret, click on the “Create my access token” button at the bottom of the page (marked in red in the figure below). Note that there will be a small green confirmation at the top of the page saying that the token has been generated.

4) Finally, the page should look like the following. Notice the API Key, API Secret, Access Token and Access Token Secret. We are going to use these 4 keys in the next section.

results matching ""

    No results matching ""