Simple show case of consuming twitter api and performing sentiment analysis over tweets
You need the following dependencies installed:
- Gradle
- ElasticSearch
- Kibana
- You need to get credentials to access
Twitter API
from here: Twitter-app once you get your credentials create a file calledtwitter4j.properties
undersrc/main/resources
and add your credentials in it, use thetemplate
under resources.
After installing Elasticsearch
just go to the bin directory and fire up elasticsearch
or
for windows bin/elasticsearch
after that you need to run gradle run
use the following command in your terminal while Elasticsearch service is up,
curl -XDELETE 'http://localhost:9200/twitter'