Re: understanding htmllib

2006-10-04 Thread Fredrik Lundh
David Bear wrote: > I'm trying to understand how to use the HTMLParser in htmllib but I'm not > seeing enough examples. > > I just want to grab the contents of everything enclosed in a '' tag, > i.e. items from where begins to where ends. I start by doing > > class HTMLBody(HTMLParser): >d

understanding htmllib

2006-10-03 Thread David Bear
I'm trying to understand how to use the HTMLParser in htmllib but I'm not seeing enough examples. I just want to grab the contents of everything enclosed in a '' tag, i.e. items from where begins to where ends. I start by doing class HTMLBody(HTMLParser): def __init__(self): self.conte