Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# Extracts MP3 file links from Business Catalyst RSS feed
from urllib import urlopen
import re
source = urlopen('http://www.businesscatalyst.com/RSSRetrieve.aspx?ID=41&Type=RSS20').read()
link = re.compile('<a href=(.*)\.mp3')
find_link = re.findall(link, source)
for link in find_link:
print "Link: %s \n" %link
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment