Q: start_h1(..) and end_h1(..) functinos in htmllib

hwan-jo yu hwanjoyu at students.uiuc.edu
Sat Nov 18 21:44:05 CET 2000


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()





More information about the Python-list mailing list