Skip to content

Instantly share code, notes, and snippets.

@0xa
Created September 9, 2012 18:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 0xa/3686309 to your computer and use it in GitHub Desktop.
Save 0xa/3686309 to your computer and use it in GitHub Desktop.
Download Infected Mushroom discography in one line
curl http://infected-mushroom.com/music/ | sed 's/.*href\=\"([a-zA-Z0-9/=]+)\" title="([a-zA-Z0-9 ]+)".*/wget $(echo "\1"|base64 -d) -O "\2.mp3"/pg' -rn | bash
@Meroje
Copy link

Meroje commented Sep 9, 2012

On OSX, with gnu-sed installed :

curl http://infected-mushroom.com/music/ | gsed 's/.*href\=\"([a-zA-Z0-9/=]+)\" title="([a-zA-Z0-9 ]+)".*/wget $(echo "\1"|base64 -D) -O "\2.mp3"/pg' -rn | bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment