Skip to content

Instantly share code, notes, and snippets.

@jadeallenx
Forked from tempire/ow ith ojo!
Created September 11, 2012 19:50
Show Gist options
  • Save jadeallenx/3701547 to your computer and use it in GitHub Desktop.
Save jadeallenx/3701547 to your computer and use it in GitHub Desktop.
tunes.io downloader oneliner
perl -C -S -MTime::Piece -Mojo -E '$i=1; mkdir $dir=$ENV{HOME}."/Dropbox/tunes.io/".localtime->ymd; say $_->text and g($_->attrs("href"))->max_message_size(25600000)->content->asset->move_to("$dir/${\$i++} ${\$_->text}.mp3") for g("tunes.io")->dom("ul a")->each'
perl -MTime::Piece -Mojo -E 'mkdir $dir=$ENV{HOME}."/Dropbox/tunes.io/".localtime->ymd; say $_->text and g($_->attrs("href"))->content->asset->move_to("$dir/${\$_->text}.mp3") for g("tunes.io")->dom("ul a")->each'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment