Skip to content

Latest commit

 

History

History
43 lines (26 loc) · 1.38 KB

README.org

File metadata and controls

43 lines (26 loc) · 1.38 KB

twfs

a fuse filesystem for tweets

installation

you’re going to need FUSE[fn:1] installed, and any fuse -devel packages if you’re using a distro that splits those out (Void, Fedora and Debian do).

i’ve included node@10 in the dev-dependencies, it works with that.

open a terminal and run these commands:

$ git clone https://github.com/chee/twfs.git
$ cd twfs
$ npm install

hopefully that worked.

now create a working copy of the config:

$ cp config.example.json config.json

now open that in a text editor. if you opened a fresh terminal, the twfs folder should be in your home directory :)

the keys and secrets to go in those variables can be retrieved when you’ve created an app[fn:2], go to its “keys and tokens” page. the “consumer” key and secret are called “API Key & Secret” in Twitter’s web ui, and the access token & secret

now you can run

$ npx node index.js

and it will mount a file system at ~~./twitter~. if you run cat twitter/username it will print username’s latest tweet.

Footnotes

[fn:1] FUSE on linux, OSXFuse on macOS and Dokany on Windows

[fn:2] i’m not sure the exact steps, i’m using an app i made a long time ago