import urllib2 from BeautifulSoup import BeautifulStoneSoup xml urllib

1
2
3
4
5
6
7
8
import urllib2
from BeautifulSoup import BeautifulStoneSoup
xml = urllib2.urlopen("http://nvd.nist.gov/download/nvdcve-2008trans.xml")
soup = BeautifulStoneSoup(xml)
entries = soup.findAll('entry')
for i in entries:
print i['name']