Skip to content

sriram/node-twitter-stream

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitter Streaming API Library for Node.js

Install

Install into current directory

npm install twitter-stream

Install into system wide location

sudo npm install -g twitter-stream

Example

var ts = require('twitter-stream');

//Connecting to Twitter Streaming API
var stream = ts.connect({
  screen_name: '',
  password: '',
  action: 'sample',
});

//Retrieving status one by one
stream.on('status', function(status) {
  console.log(status);
});

//Handling error
stream.on('error', function(error) {
  console.error(error);
});

//Aborting the stream
stream.abort();
//Pass in parameters
var stream = ts.connect({
  screen_name: '',
  password: '',
  action: 'filter',
  params: {track: 'Twitter'},
});

Contribution

Fork and send pull requests

Bugs and feature request may be submitted to: https://github.com/lmws/node-twitter-stream/issues

About

Twitter Streaming API Library for Node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published