Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/folkloreinc/node-twitter-processor
- Owner: folkloreinc
- License: other
- Created: 2012-12-03T16:07:38.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2015-10-16T20:26:46.000Z (about 9 years ago)
- Last Synced: 2024-10-29T03:50:21.769Z (2 months ago)
- Language: JavaScript
- Size: 230 KB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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-processorUsage
---------------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
});