Skip to content

Instantly share code, notes, and snippets.

@ando-takahiro
Created February 6, 2013 14:23
Show Gist options
  • Select an option

  • Save ando-takahiro/4722796 to your computer and use it in GitHub Desktop.

Select an option

Save ando-takahiro/4722796 to your computer and use it in GitHub Desktop.
/* package.json
{
"name": "photo",
"version": "0.0.0",
"description": "ERROR: No README.md file found!",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {"shelljs":"*", "underscore.string": "*"},
"repository": "",
"author": "",
"license": "BSD"
}
*/
var shelljs = require('shelljs'),
_s = require('underscore.string');
for (var i = 1; i < 100; i++) {
var s = _s.sprintf('%02d', i);
var p = 'http://photo.tepco.co.jp/library/130201_01/130201_0' + s + '.zip';
console.log(p);
shelljs.exec('curl ' + p + ' -O');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment