Skip to content

Instantly share code, notes, and snippets.

@VienosNotes
Created February 26, 2012 09:27
Show Gist options
  • Select an option

  • Save VienosNotes/1915639 to your computer and use it in GitHub Desktop.

Select an option

Save VienosNotes/1915639 to your computer and use it in GitHub Desktop.
なにかの画像を収集するスクリプト
use v6;
my @type = (1..3).list;
my @rare = (0..5).list;
my @num = (1..29).list;
my @plus = (1..3).list;
my $cmd;
for @type X @rare X @num X @plus -> $t, $r, $n, $p {
$cmd = 'wget http://example.com/directory/' ~ $t ~ $r ~ $n.fmt("%03d") ~ $p.fmt("%02d") ~ ".jpg";
eval "qx \'$cmd\'";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment