Scrape followers of twitter profile easily with this python library

Here in this post we will fetch the followers of the user with datakund. To get followers first we need to login to twitter otherwise followers can’t be accessed. Here are the steps to follow with code:-

  1. Install datakund
pip install datakund

2. Import datakund

3. Login to twitter through credentials. You can see here to follow with cookies.

4. Open the followers of user which you want to fetch followers

twitter.open("https://twitter.com/narendramodi/followers")

5. Now fetch the followers and scroll until scroll get finished

6. You can fetch all followers by scrolling to down