I would like to control the depth as it traverses the tree to two or three levels down.
By "two or three levels down," do you mean "links away from the home page", or "levels deep within the site hierarchy," or something else?
Checking the directory depth in your OK_TO_FOLLOW would be easy enough -- just scan $uri->path for the number of slashes: return 0 if ( tr[/][/] > 3 );
In reply to Re: Need to limit robot depth using WWW::Robot
by simonm
in thread Need to limit robot depth using WWW::Robot
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |