Skip to content

raghuramjee7/sentiment-analysis-tweepy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sentiment Analysis Engine

A Sentiment analysis engine that fetches tweets using the Twitter API and Tweepy library and applies NLP on them to find the sentiment using textblob library and plots its positive and negative sentiment histogram. It takes a keyword as the input and fetches 100 tweets containing that topic, cleans the tweets and feeds them to the textblob library, which assigns a polarity value to them and then plots a histogram of positive vs negative sentiment.

How to run

  • Clone the repository in your local system.
  • Install the required python libraries in your local machine - tweepy, textblob, pandas, matplotlib.
  • Get your API keys from the Twitter Developer Plaftorm and paste them in the json file.
  • Run the base.py file using python base.py by moving to the directory.
  • Input the topic you want to analyse sentiment on.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages