Introduction

Our main objective in this article is to scrape data from twitter using tweepy and perform sentiment analysis on the scrapped tweets to get the public opinion about a certain topic.

Sentiment analysis as defined by Wikipedia:

“Sentiment analysis (also known as opinion mining or emotion AI) refers to the use of natural language processing, text analysis, computational linguistics, and biometrics to systematically identify, extract, quantify, and study affective states and subjective information.”

So, what we will be doing here is using NLTK to preprocess the text and with the help of TextBlob classify it as positive, negative or neutral.

Advai Swamy

Hey everyone! I am Advai Swamy and I am currently doing my undergrad in Computer Science at NIT Trichy. I am really interested in data science and ML.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store