https://github.com/vinitshahdeo/twittersentimentanalysis
:chart: A web app to search twitter based on #Hashtags and calculate the sentiment of tweets.
https://github.com/vinitshahdeo/twittersentimentanalysis
datumbox-api hashtags php sentiment sentiment-analysis twitter-api twitter-sentiment-analysis twitter-sentiment-analyzer
Last synced: 6 months ago
JSON representation
:chart: A web app to search twitter based on #Hashtags and calculate the sentiment of tweets.
- Host: GitHub
- URL: https://github.com/vinitshahdeo/twittersentimentanalysis
- Owner: vinitshahdeo
- License: mit
- Created: 2018-11-20T10:38:38.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-10-15T19:46:27.000Z (about 4 years ago)
- Last Synced: 2025-03-24T05:43:54.762Z (7 months ago)
- Topics: datumbox-api, hashtags, php, sentiment, sentiment-analysis, twitter-api, twitter-sentiment-analysis, twitter-sentiment-analyzer
- Language: PHP
- Homepage: https://vinitshahdeo.github.io/TwitterSentimentAnalysis/
- Size: 190 KB
- Stars: 38
- Watchers: 3
- Forks: 24
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Twitter Sentiment Analysis
[](https://github.com/vinitshahdeo/TwitterSentimentAnalysis/) [](https://github.com/vinitshahdeo/)
[](https://github.com/vinitshahdeo/TwitterSentimentAnalysis/blob/master/LICENSE)[](https://github.com/vinitshahdeo/) [](https://github.com/vinitshahdeo/) [](https://github.com/vinitshahdeo/)
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.
[](https://github.com/vinitshahdeo) [](https://github.com/vinitshahdeo)
> **Check [live demo](http://winitvit.000webhostapp.com/projects/twitter/) here!**
[](https://github.com/vinitshahdeo/TwitterSentimentAnalysis/) [](https://github.com/vinitshahdeo/TwitterSentimentAnalysis/)
## APIs Used
- [Datumbox API 1.0v](http://www.datumbox.com/users/register/)
- [Twitter API](https://dev.twitter.com/apps)## Useful Links
- Sign-up for free API Key: [Click here!](http://www.datumbox.com/users/register/)
- View your API Key: [Click here!](http://www.datumbox.com/apikeys/view/)
- PHP Twitter API Client: [Click here!](https://github.com/timwhitlock/php-twitter-api)
## 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```php
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](https://vinitshahdeo.github.io/jobtweets/) - Twitter Sentiment Analysis using Python
> The project is about searching the twitter for job opportunities using popular [#hashtags](https://twitter.com/search?q=%23jobs&src=typd) and applying sentiment analysis on this.
## Oh, Thanks](https://facebook.com/vinit.shahdeo) [](https://instagram.com/vinitshahdeo)
Thank you for being here!
For any kind of help in running this project, feel free to contact me @ [vinitshahdeo@gmail.com](https://mail.google.com/mail/)[](https://facebook.com/vinit.shahdeo)
[](https://twitter.com/intent/tweet?text=Twitter%20Sentiment%20Analysis%20by%20@Vinit_Shahdeo%20:&url=https%3A%2F%2Fgithub.com%2Fvinitshahdeo%2FTwitterSentimentAnalysis)
## License**MIT © [Vinit Shahdeo](https://github.com/vinitshahdeo/)**
[](https://sourcerer.io/fame/vinitshahdeo/vinitshahdeo/TwitterSentimentAnalysis/links/0)[](https://sourcerer.io/fame/vinitshahdeo/vinitshahdeo/TwitterSentimentAnalysis/links/1)[](https://sourcerer.io/fame/vinitshahdeo/vinitshahdeo/TwitterSentimentAnalysis/links/2)[](https://sourcerer.io/fame/vinitshahdeo/vinitshahdeo/TwitterSentimentAnalysis/links/3)[](https://sourcerer.io/fame/vinitshahdeo/vinitshahdeo/TwitterSentimentAnalysis/links/4)[](https://sourcerer.io/fame/vinitshahdeo/vinitshahdeo/TwitterSentimentAnalysis/links/5)[](https://sourcerer.io/fame/vinitshahdeo/vinitshahdeo/TwitterSentimentAnalysis/links/6)[](https://sourcerer.io/fame/vinitshahdeo/vinitshahdeo/TwitterSentimentAnalysis/links/7)
[](https://twitter.com/Vinit_Shahdeo)
[](https://github.com/vinitshahdeo) [](https://github.com/vinitshahdeo) [](https://facebook.com/vinitshahdeo)