I've used this script to download all the episodes from the amazing "Social Engineer Podcast" and thought of sharing it with you guys.
#!/usr/bin/env python # Mp3 feed downloader snippet # Modifications by facuman, original script by unutbu from urllib2 import urlopen import re import os import sys # Uncomment the following line and comment the one below if you wish to type the source url #url=sys.argv[1] url="http://socialengineer.podbean.com/feed/" print "Downloading from %s\n\n" % url content=urlopen(url).read() contents=content.split() pat=re.compile('(http://.+?\.mp3)') groups=(pat.search(line) for line in content.split()) tuples=(g.groups() for g in groups if g) for mp3, in tuples: cmd='wget %s'%mp3 print cmd os.system(cmd) #
I'm sure it will come in handy if you, like me, don't use any podcast client (it should be useful for another podcast feeds also).
Cheers!