OS Manuals

WWW::RobotRules::DB_File(3pm)

WWW::RobotRules::DB_File - Parse robots.txt files using a disk cache

WWW::RobotRules::DB_File(3) User Contributed Perl Documentation WWW::RobotRules::DB_File(3)

WWW::RobotRules::DB_File - Parse robots.txt files using a disk cache

 require WWW::RobotRules::DB_File;
 require LWP::RobotUA;
 #Create a robot useragent that uses a disk caching RobotRules
 $ua = WWW::RobotUA->new( 'my-robot/1.0', 'me@foo.com' ,
       WWW::RobotRules::DB_File->new( 'my-robot/1.0', '/path/cachefile' ));
 #The just use $ua as usual
 $res=$ua->request($req);

This is a subclass of WWW::RobotRules that uses the DB_File package to implement disk caching of robots.txt.

This is a subclass of WWW::RobotRules, so it implements the same methods

$rules new WWW::RobotRules::DB_File 'my-robot/1.0', /path/cachefile
This is the constructor. The only difference from the original constructor from WWW::RobotRules is that you here has to specify a cache file as well.

WWW::RobotRules

Hakan Ardo <hakan@munin.ub2.lu.se>

2026-08-26 perl v5.44.0

perl-www-robotrules 6.02-r9 · os · ingested 2026-09-30