1WWW::RobotRules::AnyDBMU_sFeirleC(o3n)tributed Perl DocuWmWeWn:t:aRtoiboontRules::AnyDBM_File(3)
2
3
4

NAME

6       WWW::RobotRules::AnyDBM_File - Persistent RobotRules
7

SYNOPSIS

9        require WWW::RobotRules::AnyDBM_File;
10        require LWP::RobotUA;
11
12        # Create a robot useragent that uses a diskcaching RobotRules
13        my $rules = WWW::RobotRules::AnyDBM_File->new( 'my-robot/1.0', 'cachefile' );
14        my $ua = WWW::RobotUA->new( 'my-robot/1.0', 'me@foo.com', $rules );
15
16        # Then just use $ua as usual
17        $res = $ua->request($req);
18

DESCRIPTION

20       This is a subclass of WWW::RobotRules that uses the AnyDBM_File package
21       to implement persistent diskcaching of robots.txt and host visit
22       information.
23
24       The constructor (the new() method) takes an extra argument specifying
25       the name of the DBM file to use.  If the DBM file already exists, then
26       you can specify undef as agent name as the name can be obtained from
27       the DBM database.
28

SEE ALSO

30       WWW::RobotRules, LWP::RobotUA
31

AUTHORS

33       Hakan Ardo <hakan@munin.ub2.lu.se>, Gisle Aas <aas@sn.no>
34
35
36
37perl v5.16.3                      2012-02-15   WWW::RobotRules::AnyDBM_File(3)
Impressum