newbie question

JMysak mysakjs at gmail.com
Sat Apr 26 00:16:07 CEST 2008


I'm working with the HTMLParser module and have implemented
HTMLParser.handle_starttag() and I see there is a separate handle_data
method (which can be implemented), but I am not clear how to tie this
together with a given start tag, so I only get the data I want.

For example, I'd like to get a handle on the character data ( the
number 1) immediately after the following start tag

<span class="calPast">
1</br>
.
.
.
Any ideas?



More information about the Python-list mailing list