Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tariknz/nodejs-twitter-stream
Twitter live streaming example.
https://github.com/tariknz/nodejs-twitter-stream
Last synced: about 2 months ago
JSON representation
Twitter live streaming example.
- Host: GitHub
- URL: https://github.com/tariknz/nodejs-twitter-stream
- Owner: tariknz
- Created: 2013-04-22T06:45:50.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-07-30T06:19:32.000Z (over 11 years ago)
- Last Synced: 2024-04-13T03:17:00.924Z (9 months ago)
- Language: JavaScript
- Size: 46.9 KB
- Stars: 4
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Setup
=====Install the required modules in npm
npm install ntwitter
npm install socket.io
Enter your API keys by editing these lines:var twit = new twitter({
consumer_key: '[YOUR KEY HERE]',
consumer_secret: '[YOUR KEY HERE]',
access_token_key: '[YOUR KEY HERE]',
access_token_secret:'[YOUR KEY HERE]'
});You can pick what topic you are listening for by editing this line in twitter-stream.js
twit.stream('statuses/filter', {'track':'YOUR TOPIC HERE'},
Run
===If you are using windows, just run the batch file. Else:
### Windows
node twitter-stream.js
### Linux
nodejs twitter-stream.js
Screenshot
==========![Alt text](http://imgur.com/WZoVVHA.jpg)