Getting the data
The first step to get the data is to set up the Twitter access from its developer platform with two main methods:
- Getting Twitter API keys
- Connecting to the Twitter API:
- Streaming API
- REST API (Search endpoint)
Getting Twitter API keys
Firstly, you will need to have a Twitter account and obtain credentials (consumer key, consumer secret, access token, and access secret) on the Twitter developer platform to access the Twitter API, following these steps:
- Create a Twitter user account.
- Log in with your Twitter user account at https://apps.Twitter.com/.
- Click
Create New App.
- Fill out the form, agree to the terms, and click on
Create your Twitter application.
- Go to the next page, click on the
Keys and Access Tokens
tab, and copy yourAPI key
andAPI secret
. Scroll down and click onCreate my access token
, and copy yourAccess token
, andAccess token secret
.
Once, we're ready with the Twitter credentials we can move to the next stages of the analysis:
Data extraction
Having all required authorization...