All pastes #334195 Raw Edit

Miscellany

public text v1 · immutable
#334195 ·published 2007-01-31 12:30 UTC
rendered paste body
import urllib
from xml.dom import minidom
sock = urllib.urlopen("http://digg.com/rss/index.xml")
feed = minidom.parse(sock)
title = feed.getElementsByTagName('title')
for i in range(len(title)):
        if not "digg" == title[i].firstChild.data:
                print title[i].firstChild.data
        if i == 10:
                break