I'm processing some potentially large datasets stored as HTML. I've subclassed HTMLParser so that handle_endtag() accumulates data into a list, which I can then fetch when everything's done. I'd prefer, however, to have handle_endtag() somehow yield values while the input data is still streaming in. I'm sure someone's done something like this before, but I can't figure it out. Can anyone help? Thanks. -- http://mail.python.org/mailman/listinfo/python-list
- Turning HTMLParser into an iterator samwyse
- Re: Turning HTMLParser into an iterator Stefan Behnel