Skip to content

Instantly share code, notes, and snippets.

@mlafeldt
Created July 2, 2011 18:09
Show Gist options
  • Save mlafeldt/1061475 to your computer and use it in GitHub Desktop.
Save mlafeldt/1061475 to your computer and use it in GitHub Desktop.
[Python] Find download links to all SE Radio podcasts
#!/usr/bin/env python
"""
find download links to all SE Radio podcasts
usage:
$ ./seradio_get.py > seradio.lst
$ wget -c -i seradio.lst
written by Mathias Lafeldt <mathias.lafeldt@gmail.com>
"""
import re, urllib
url = 'http://feeds.feedburner.com/se-radio'
pattern = re.compile(r'<feedburner:origEnclosureLink>(.+?\.mp3)</feedburner:origEnclosureLink>')
html = urllib.urlopen(url).read()
print '\n'.join(pattern.findall(html))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment