Hi, I would like to extract the text only on headtags in a html document. I tried the below codes, but it doesn't work. How to extract them ? Thanks def start_h1(self, attrs): self.save_bgn() def end_h1(self): print self.save_end()