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: 7 months ago
JSON representation
A script to perform sentiment analysis on live tweets related to any search term and display results in a pie chart.
- Host: GitHub
- URL: https://github.com/aakankshabaijal/sentiment-analysis-tweepy
- Owner: aakankshabaijal
- Created: 2021-11-04T19:39:08.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-11-05T11:07:23.000Z (about 4 years ago)
- Last Synced: 2025-02-15T20:28:37.831Z (9 months ago)
- Topics: matplotlib-pyplot, textblob-sentiment-analysis, tweepy
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 :

