This is a Sentiment Analysis of the Twitter using API which fetches the required query from the Twitter and make use of Some libraries to classify it as positive,neutral or negative.
The most important thing here is to get th twitter API and we can do that by creating a Twitter Developer Account and get their permissions to access the API, it is a couple of formalities and it can be done within minutes.
From their we can access the keys,secret key,tokens and secret tokens which is confidential so u have to fill yours in the code there.
The code is taken from Geeks for Geeks