This is a Demo of tweets sentiment Analysis with Trump vs Clinton via Twitter stream api using red node.
clone the project and follow the instructions.
Run the Command docker run -it -p 1880:1880 --name mynodered nodered/node-red-docker
sudo npm install -g --unsafe-perm node-red
-
Go to
http://{host-ip}:1880
Where{host-ip}
the docker IP, localhost or 127.0.0.1 ect -
Click the menu in the top right corner
-
Click Mange palette
-
Click the install tab under Mange palette window
-
Open the flows.json file --> flows.json then copy the json string
Ctrl + C
orcmd + C
-
Go to
http://{host-ip}:1880
Where{host-ip}
the docker IP, localhost or 127.0.0.1 ect -
Write
node-red-contrib-twitter-stream
in the search bar, then click install
node-red-contrib-twitter-stream Docs
-
Click the menu in the top right conran
-
Click Import
-
Click Clipboard
-
Paste in the text box
Crtl + P
orcmd + P
-
Click Import
In order to complete this step you need Twitter app, if you don't have one please follow this tutorial How to Register a Twitter App in 8 Easy Steps. After, than Make a note of your OAuth Settings, becuse we will need them soon.
-
Go Back to Red-Node
http://{host-ip}:1880
Where{host-ip}
the docker IP, localhost or 127.0.0.1 ect -
Double-Click on Twitter Stream node
-
Click Edit The Connection
-
fill the fields with your OAuth info
-
Click Add.
At this point you are almost set, Click Deploy and you should see no Errors. If every thing is OK, Run the HTML file in the Broswer.
If your Red-Node IP not localhost or 127.0.0.1, then you need to edit the IP in the webpage sourcecode, make sure to use your IP.