Created
May 4, 2015 14:45
-
-
Save mhl/e75f8a4e2e041f570138 to your computer and use it in GitHub Desktop.
An old script for downloading albums from EMusic, no idea if it still works
This file contains 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
#!/usr/bin/env python | |
import sys | |
import os | |
from subprocess import check_call | |
from lxml import etree | |
if len(sys.argv) != 2: | |
print >> sys.stderr, "Usage: %s [EMX-FILE]" % (sys.argv[0]) | |
sys.exit(1) | |
data = etree.parse(sys.argv[1]) | |
for tu in data.xpath("//TRACKURL"): | |
check_call(['wget','-c',tu.text]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment