Skip to content

Instantly share code, notes, and snippets.

@mlafeldt
Created July 2, 2011 18:11
Show Gist options
  • Save mlafeldt/1061479 to your computer and use it in GitHub Desktop.
Save mlafeldt/1061479 to your computer and use it in GitHub Desktop.
[Python] Find download links to all SoftwareArchitekTOUR podcasts
#!/usr/bin/env python
"""
find download links to all SoftwareArchitekTOUR podcasts
usage:
$ ./softwarearchitektour_get.py > files.lst
$ wget -c -i files.lst
written by Mathias Lafeldt <mathias.lafeldt@gmail.com>
"""
import re, urllib
url = 'http://www.heise.de/developer/podcast/itunes/heise-developer-podcast-softwarearchitektour.rss'
pattern = re.compile(r'url="(.+\.mp3)\?')
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