classMyHTMLParser(HTMLParser.HTMLParser): def__init__(self): self.selected=['html','body','table','head','meta','style','tr','td'] self.reset() self._level_stack=[] self.flag=True globalstyle_list,br_list,tr_list,td_list,td_c