A simple Node.js app using Express 4.
First we perform a sentiment analysis on tweets data(Tweets that mention specific account @dataiku) - since 2012 to 2017 Then, We scrape tweets using a python script and the twitter public search api to collect data, then we apply sentiment analysis using Python and a NLP module, specifically the module called textblob, built on top of python nltk.
Make sure you have Node.js and the Heroku CLI installed.
$ git clone https://github.com/pcauich/sentiment_analysis_viewer-dataiku.git # or clone your own fork
$ cd sentiment_analysis_viewer-dataiku
$ npm install
$ npm start
Your app should now be running on localhost:5000.
$ heroku create
$ git push heroku master
$ heroku open
or
For more information about using Node.js on Heroku, see these Dev Center articles:
- Getting Started with Node.js on Heroku
- Heroku Node.js Support
- Node.js on Heroku
- Best Practices for Node.js Development
- Using WebSockets on Heroku with Node.js
Created by: Pedro Cauich
Credits to:
- Dataiku Dss
- Python NLTK
- TextBlolb
- Twitter Advanced search
- Leaflet
- And more...