from BeautifulSoup import BeautifulSoup
import urllib.request, urllib.parse, urllib.error
ur = urllib.request.urlopen('http://pragprog.com/podcasts/feed.rss')
soup = BeautifulSoup(ur.read())
items = soup.findAll('item')
urls = [item.enclosure['url'] for item in items]
How to crawl a website/extract data into database with python?