We previously used the tweepy library to download tweets. Now we shall endeavour to…
With an API, getting data from Twitter is much easier than scraping it off a webpage.
A common(but not the only) library to use is Tweepy.
We first import the tweepy library, which allows us to fetch Twitter data with a simple API.