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 bot-studio. Following are the steps to go with:-
- Install bot-studio
pip install bot-studio
2. Import bot-studio
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.