Defi Twitter
1 - Install npm and nodejs/node packages.
Commendes :
-
sudo apt-get install npm nodejs.
-
npm i -S socket.io twitter
1 - Enter your keys and access token twitter in get_tweets.js
- if you don't have the keys twitter you can create your application here "https://dev.twitter.com/"
2 - if you want change the HashTag :
- Go to the file get_tweets.js and in the function stream change the value for track.
Run this commande :
nodejs/node get_tweets.js
then go to https://localhost:3000
socket.io : 1.7.3 for get tweets in real time.
twitter : 1.7.0 for get the tweets.
if there is a problem when you run the code you have to change the port.
you can change it in the file get_tweets.js the variable port.
if there is another problem you can send me a mail "[email protected]"