in reply to recursively extracting links from yahoo, when to stop?

Surely it's up to you to decide where you want to stop. We can help you with the how but not the why.

    -- Chip Salzenberg, Free-Floating Agent of Chaos