Scrape tweets of twitter profile easily with this simple python code

Here we are going to fetch tweets of a user and also retweets of a tweet by using datakund. Following are the steps to go with:-

  1. Install datakund
pip install datakund

2. Import datakund

3. To fetch the tweets of user , open the user’s profile

4. Now scroll till scrolling ends and fetch the tweets along

5. To fetch the retweets open the retweet link

twitter.open("https://twitter.com/narendramodi/status/1344201660784992263/retweets")

6. Now fetch the retweets.