Awesome
Twitter Sentiment Analysis
A web app to search the keywords(Hashtags) on Twitter and analyze the sentiments of it. The source code is written in PHP and it performs Sentiment Analysis on Tweets by using the Datumbox API.
Check live demo here!
APIs Used
Useful Links
-
Sign-up for free API Key: Click here!
-
View your API Key: Click here!
-
PHP Twitter API Client: Click here!
Instructions
-
Open config.php and configure your Datumbox API Key. Get yours at http://www.datumbox.com/apikeys/view/
-
Get Twitter API key for your application at https://dev.twitter.com/apps
-
Replace XXXXXXXXXXXXXXXXXX with your API keys
define('DATUMBOX_API_KEY', 'XXXXXXXXXXXXXXXXXX');
define('TWITTER_CONSUMER_KEY', 'XXXXXXXXXXXXXXXXXX');
define('TWITTER_CONSUMER_SECRET', 'XXXXXXXXXXXXXXXXXX');
define('TWITTER_ACCESS_KEY', 'XXXXXXXXXXXXXXXXXX');
define('TWITTER_ACCESS_SECRET', 'XXXXXXXXXXXXXXXXXX');
-
Run
localhost/index.php
-
Wait a while after entering the hashtags. It may take one minute to fetch the tweets. Make sure that your system is connected with internet.
Related Repository
Jobtweets - Twitter Sentiment Analysis using Python
The project is about searching the twitter for job opportunities using popular #hashtags and applying sentiment analysis on this.
Oh, Thanks!
Thank you for being here! For any kind of help in running this project, feel free to contact me @ vinitshahdeo@gmail.com
License
MIT © Vinit Shahdeo
<a href="https://twitter.com/Vinit_Shahdeo"><img src="icons/twitter.png" width="32px" height="32px"></a> <a href="https://www.facebook.com/vinit.shahdeo"><img src="icons/facebook.png" width="32px" height="32px"></a> <a href="https://www.linkedin.com/in/vinitshahdeo/"><img src="icons/linkedin.png" width="32px" height="32px"></a>