- Notifications
You must be signed in to change notification settings - Fork113
This script can tell you the sentiments of people regarding to any events happening in the world by analyzing tweets related to that event
License
the-javapocalypse/Twitter-Sentiment-Analysis
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This script can tell you the sentiments of people regarding to any events happening in the world by analyzing tweets related to that event. It will search for tweets about any topic and analyze each tweet to see how positive or negative it's emotion is. You might want to check out this complete text and video based detailedtutorial link
First of all login from your Twitter account and gotoTwitter Apps. Create a new app (How to create twitter app) and gotoKeys and access tokens and copy Consumer Key, Consumer Secret, Access Token and Access Token Secret. We will need them later.
Download or Clone the repo, Navigate to the directory containing the files and run
python setup.py installor if you have different versions of python installed then
python3 setup.py installto install the dependencies.
Once you have created an app on twitter and installed all the dependencies by runningsetup.py, open main.py and paste your Consumer Key, Consumer Secret, Access Token and Access Token Secret. After that save and run the script. You will be prompted to enter the keyword/hashtag you want to analyze and the number of tweets you want to analyze. Once the analysis is completed, a pie chart will be generated disclosing the results of analysis.
- Python 3.6
- tweepy
- textblob
- matplotlib
- Fork it
- Create your feature branch: git checkout -b my-new-feature
- Commit your changes: git commit -am 'Add some feature'
- Push to the branch: git push origin my-new-feature
- Submit a pull request
Muhammad Ali Zia
This project is licensed under the MIT License - see theLICENSE.md file for details
About
This script can tell you the sentiments of people regarding to any events happening in the world by analyzing tweets related to that event
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
