sync/gptest.js

12 lines
308 B
JavaScript
Raw Normal View History

2014-07-09 20:41:11 -07:00
var gi = require('./lib/get-info');
var gp = gi.Getters.gp;
var link = process.argv[2];
2014-07-10 23:03:13 -07:00
var id = link.replace(/https:\/\/plus\.google\.com\/photos\/(\d+)\/albums\/(\d+)\/(\d+)/, "$1_$2_$3");
2014-07-09 20:41:11 -07:00
gp(id, function (err, data) {
if (err) console.error(err)
else console.log(data);
process.exit(0);
});