Kudos to you for wanting polite bots. The problem with getting LWP::RobotUA to play
nice with WWW::Mechanize is that they both are subclasses of LWP::UserAgent.
By itself, WWW::Mechanize does not consult the /robots.txt file, but you can instead
use WWW::RobotRules. Here is a working example that tries to grab two files from
my server:
There might be a better way though ... ahh, how about "WWW::Mechanize::Polite"?
And if i didn't just reinvent a wheel, you might be seeing this on the CPAN. ;)
| [reply] [d/l] [select] |