Created
May 21, 2015 13:48
-
-
Save trapd00r/91e62be77586b903d8e1 to your computer and use it in GitHub Desktop.
amigaremix.com ripper
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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