in reply to HTML::Table::Extract

Did you try printing $content in the while loop to verify that you get new page with 10 new ads?

If so, try to re-initialise $te in the while-loop (for testing only) to see if the problem is the TableExtractor not parsing a 2nd time.

On a side-note, who do you calculate $iter? I'd just say while ($recnum < $total) {}

Replies are listed 'Best First'.
Re: Re: HTML::Table::Extract
by carric (Beadle) on Nov 22, 2003 at 19:46 UTC
    Hmm... as obvious as that is, I assumed if it was a new page, it would be new data.. I DID try printing out the content, but I was too lazy to actually look at the raw HTML.. I really should try that. Good idea...

    I will research re-initializing vars as well.

    As far as why I calc $iter, if I have say 736 ads, that LAST value for $recnum I want is 730 since this displays that last 6 ads. If I incement all the way to 736 I get a blank page, so I divide by 10, take the remainder and subtract that to get the last number evenly divisible by 10.