In order to access and download data from Twitter API, you need to have credentials such as keys and access tokens.You get them by simply creating an APP with Twitter.
Follow these steps:
- Go to Twitter Application Management and log in, with your Twitter account
- Click “create New app” button
- Supply the necessary required fields, read and agree to the Twitter Developer Agreement
- Submit the form
Below you will find the full code where you can add your credentials and screen name from which you want to extract followers (line 27). The script will save CSV file with today's date so it will be easier for further analysis.
No comments:
Post a Comment