How to save all you Twitter flowers ?

In this tutorial, I will show you how to extract all your followers to CSV/excel using a simple python script. Together with followers screen name, you will also get their description number of followers, language, and location. This can help you monitor your account and see how you progress with your followers.

This tutorial is based on Tweepy library and python v3.6

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

Fork me on GitHub