18 September 2011

Problem:

download a stack of MP3 files listed in a web page.

Solution:

SaveAs the web page (as music.html) then...
for x in $(gawk '-F"' '/\.mp3"/ { print $10; }' music.html); do
wget -c $x
done
Hit the Enter key, wait about 3 minutes, all finished.

Yay! Software as a toy!

1 comment:

Jeremy said...

This is pretty neat. I can definitely see myself using this in the future.

For those who are Firefox users (which doesn't include me most days of the week) there is actually an extension called DownThemAll which has a similar aim.