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