#! /usr/bin/env python from xml.dom.minidom import parse; from sys import argv from os import system if __name__ == '__main__': if len(argv)>1: # print >> file('/tmp/asp.log', 'w'), argv d = parse(file(argv[1])); links = [ ref.getAttribute('HREF') for ref in d.getElementsByTagName('REF') if ref.hasAttribute('HREF') ] for link in links: system('mplayer ' + link)