Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/aakankshabaijal/sentiment-analysis-tweepy
- Owner: aakankshabaijal
- Created: 2021-11-04T19:39:08.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2021-11-05T11:07:23.000Z (about 3 years ago)
- Last Synced: 2024-11-05T23:19:33.434Z (3 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 :![image](https://drive.google.com/uc?export=view&id=1-5yolaJJ3hjHDxWA7p1zemK0sHOkwquI)
![image](https://drive.google.com/uc?export=view&id=1t_dY0vAjV1-tJCDcsCq3gyfd4lJ8CkwV)