Skip to content

Instantly share code, notes, and snippets.

@trapd00r
Created May 21, 2015 13:48
Show Gist options
  • Save trapd00r/91e62be77586b903d8e1 to your computer and use it in GitHub Desktop.
Save trapd00r/91e62be77586b903d8e1 to your computer and use it in GitHub Desktop.
amigaremix.com ripper
#!/bin/sh
# vim: synmaxcol& ft=zsh:
mkdir -p amigaremix && cd amigaremix;
wget $( \
for x in $( \
for d in {1..64};
do printf "http://amigaremix.com/remixes/$d\n";
done
); do curl -s $x; done \
| grep -iPo 'a href=..listen.+\.mp3"' \
| perl -pe 's/^a href="(.+mp3)"$/http:\/\/amigaremix.com$1/' \
| perl -pe "s/ /%20/g")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment