import HTMLParserimport urlliburlText = []class parseText(HTMLParser.HTMLParser): def handle_data(self, data): if data != 'n': urlText.append(data)lParser = parseText()lParser.feed(urllib.urlopen("http://www.python.org/index.html").read())lParser.close()for item in urlText: print item
Name (required)
email (will not be published) (required)
Website