Replace deprecated sgmllib with HTMLParser/html.parser