Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/folkloreinc/node-twitter-processor

Process tweets with Twitter Streaming API and Node.js
https://github.com/folkloreinc/node-twitter-processor

Last synced: about 2 months ago
JSON representation

Process tweets with Twitter Streaming API and Node.js

Awesome Lists containing this project

README

        

twitter-processor
===========

Receive Tweets from the Twitter Streaming API and process them using custom processors.

Installation
---------------
npm install twitter-processor

Usage
---------------

var twitterProcessor = require('twitter-processor');

var processor = twitterProcessor.createProcessor({
'debug' : true,
'processor' : function(tweet,done) {
tweet.addedKey = 'value';
done();
},
'twitter' : {
'consumer_key' : '',
'consumer_secret' : '',
'access_token_key' : '',
'access_token_secret' : ''
},
'filter' : {
'track' : 'Twitter'
}
});

processor.on('tweet',function(tweet) {
console.log(tweet.addedKey); //value
});