Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# twlogger | ||
|
||
CouchDB に Twitter のストリームを放り込み続けます。あと、ふぁぼられ一覧が見られます。 | ||
|
||
## 準備 | ||
|
||
まず `my_keys.json` を書きます。 | ||
|
||
```bash | ||
$ cp example_keys.json my_keys.json | ||
$ cat my_keys.json | ||
{ | ||
"key": "", | ||
"secret": "", | ||
"token": "", | ||
"tokenSecret": "", | ||
"couchdb": "", | ||
"username": "", | ||
"password": "" | ||
} | ||
$ $EDITOR my_keys.json | ||
``` | ||
|
||
Twitter にアプリ登録してない人は dev.twitter.com からどうぞ。 | ||
|
||
んで例によって `npm install` | ||
|
||
```bash | ||
$ npm install | ||
``` | ||
|
||
## CouchDB に View を作る | ||
|
||
`create_view.js` を使う。 | ||
|
||
```bash | ||
$ node create_view.js | ||
``` | ||
|
||
一度だけでよい。 | ||
|
||
## ストリームを CouchDB に突っ込む | ||
|
||
`stream_bridge.js` を使う。 | ||
|
||
```bash | ||
$ node stream_bridge.js | ||
``` | ||
|
||
サーバー立てて forever とかでやるとよい。 |