The do...while thing is the most tricky part when building a custom web source. The while command acts like an if and therefore the text from the first parameter has to be exactly the text of the current internal cursor position.
This is not the case with your script. As you can see from the logfile, the current position is <td width="200" align=" and not so the loop ends.