Simple nodejs script to convert timeline from twitter (https://dev.twitter.com) to twtxt (https://github.com/buckket/twtxt) format.
$ npm install twitter moment
$ convert.js > ~/twtxt.txt
Simple nodejs script to convert timeline from twitter (https://dev.twitter.com) to twtxt (https://github.com/buckket/twtxt) format.
$ npm install twitter moment
$ convert.js > ~/twtxt.txt
A Pen by Stefan Judis on CodePen.
# sh get_token.sh user pass | |
curl -s -d '{"scopes":["repo"],"note":"admin script"}' -u "$1:$2" -XPOST https://api.github.com/authorizations | grep token |
var http = require("http"), | |
url = require("url"), | |
path = require("path"), | |
fs = require("fs") | |
port = process.argv[2] || 8888; | |
http.createServer(function(request, response) { | |
var uri = url.parse(request.url).pathname | |
, filename = path.join(process.cwd(), uri); |