Python Web Scraping: Scrap number of tweets of a given Twitter account
Write a Python program to scrap number of tweets of a given Twitter account.
Sample Solution:
Python Code:
Sample Output:
Input your account name on Twitter: @prasanta Input number of tweets to scrape: 2 Prasanta Kundu Retweeted WorkApps @WorkAppsInc 13 Nov 2017 A Dedicated Mobile App for your Sales Teams to keep All Product Knowledge handy. Works even when Offline!! Log on to http://www.KnowledgeApps.ai to know more!pic.twitter.com/5F7v1CRHma 0 replies 3 retweets 2 likes Prasanta Kundu Retweeted MVS Murthy @mittispeaks 8 Nov 2017 This one is for all the #BFSI folks ... #HRManager #HRTech Help your sales team sell better. Complete #Product #Knowledge on a dedicated mobile app which works even in #offline mode. Know more @ http://www.knowledgeapps.ai pic.twitter.com/dwsOpFgX0A 0 replies 2 retweets 0 likes
Flowchart:

Python Code Editor:
Have another way to solve this solution? Contribute your code (and comments) through Disqus.
Previous: Write a Python program to count number of tweets by a given Twitter account.
Next: Write a Python program to find the live weather report (temperature, wind speed, description and weather) of a given city.
What is the difficulty level of this exercise?