Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aakankshabaijal/sentiment-analysis-tweepy

A script to perform sentiment analysis on live tweets related to any search term and display results in a pie chart.
https://github.com/aakankshabaijal/sentiment-analysis-tweepy

matplotlib-pyplot textblob-sentiment-analysis tweepy

Last synced: 30 days ago
JSON representation

A script to perform sentiment analysis on live tweets related to any search term and display results in a pie chart.

Awesome Lists containing this project

README

        

# sentiment-analysis-tweepy

This script uses the Tweepy and TextBlob libraries to perform sentiment analysis on live tweets. The user has to provide a search term and number of tweets to fetch, and a detailed pie chart showing the polarity of sentiments (postitive, negative or neutral) are displayed.

[Tutorial Link](https://www.youtube.com/watch?v=eFdPGpny_hY)

## Twitter Credentials
You must [register as a developer account on Twitter](https://developer.twitter.com/en). Then use the Access Key, Access Key Secret, Token Key and Token Key Secret to complete authentication and start using the `Tweepy` library to fetch tweets.

## Python Libraries Required
`tweepy`
`textblob`
`matplotlib`

## Output
Sample output for performing sentiment analysis on 100 recent tweets related to coca cola :

![image](https://drive.google.com/uc?export=view&id=1-5yolaJJ3hjHDxWA7p1zemK0sHOkwquI)

![image](https://drive.google.com/uc?export=view&id=1t_dY0vAjV1-tJCDcsCq3gyfd4lJ8CkwV)