In this section, we are going to use the Twitter streaming API to get some tweets. First we need to create a Twitter app. This can be done using the following steps:
- Go to https://apps.twitter.com/.
- Sign in using your Twitter account.
- Sign up at https://twitter.com/signup if you don’t have a Twitter account.
- Click on Create New App.
- Fill in your application details and create the application.
- Notice that consumer_key and consumer_secret are already generated for you. Copy them and run the following commands, replacing the underlined variables with your unique values:
$echo consumer_key >> auth
$echo consumer_secret >> auth
- Click Create my access token.
- Notice that access_token and access_token_secret now appear on your screen.
- Copy them and run the following commands, replacing the underlined variables...