Ezio Melotti added the comment:
Have you tried with HTMLParser?
sgmllib is deprecated and has been removed in Python 3.
HTMLParser is also much better at parsing (broken) HTML.
Python tracker <rep...@bugs.python.org>
Python-bugs-list mailing list