page = urllib.request.urlopen('http://www.yahoo.com')
htmlText = page.read()
page.close()
anchorStart, anchorEnd = makeHTMLTags('a')
anchor = anchorStart + SkipTo(anchorEnd).setResultsName('body') + anchorEnd
for tokens, start, end in anchor.scanString(htmlText):
    pass
Python html parsing that actually works