Skip to content

Instantly share code, notes, and snippets.

@mhl
Created January 13, 2010 10:13
Show Gist options
  • Save mhl/276086 to your computer and use it in GitHub Desktop.
Save mhl/276086 to your computer and use it in GitHub Desktop.
Tiny eMusic Download Script
#!/bin/sh
if [ $# -ne 1 ]
then
echo Usage: $0 "<path-to-download.emx>"
exit 1
fi
for i in $(xml_grep 'TRACKURL' $1|sed 's/.*\(http.*mp3\).*/\1/'|egrep http)
do
wget $i
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment