Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bitliner/tweetstream
Node module to create quickly a Twitter keyword based stream
https://github.com/bitliner/tweetstream
Last synced: about 21 hours ago
JSON representation
Node module to create quickly a Twitter keyword based stream
- Host: GitHub
- URL: https://github.com/bitliner/tweetstream
- Owner: bitliner
- Created: 2013-02-15T07:47:40.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-10-19T02:55:43.000Z (over 10 years ago)
- Last Synced: 2025-01-16T16:42:49.985Z (8 days ago)
- Language: JavaScript
- Size: 276 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tweet_stream
It lets you to create a keyword based Twitter stream.
**Pros** of using *tweet_stream*:
1. integration with nodejs streams: you can create a twitter stream and pipe it to an other nodejs stream that makes some computations on each tweet (check the example)
2. it enriches each tweet with the specific keyword it was extracted by. In this way you can easily aggregate multiple streams, avoiding to reach the Twitter api limit for stream api
## Installation
`npm install tweet_stream`
## Usage
```
var TwStream=require('tweet_stream'),
through2=require('through2');var t=new TwStream({
consumer_key:'xxx',
consumer_secret:'yyy',
access_token:'zzz',
access_token_secret:'lll',
keywords: ['obama','election']
}).pipe(through2.obj(function(tweet, encoding, done) {
console.log('t', tweet.text);
done();
}))
```