Created
July 2, 2011 18:11
-
-
Save mlafeldt/1061479 to your computer and use it in GitHub Desktop.
[Python] Find download links to all SoftwareArchitekTOUR podcasts
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 | |
""" | |
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