WWW::Ro...BM_File(3)
π NAME π
okay so bestie, you're on the WWW::RobotRules::AnyDBM_File(3) page from User Contributed Perl Documentation, and the actual name is WWW::RobotRules::AnyDBM_File β Persistent RobotRules π
β¨
β¨ SYNOPSIS β¨
like, here's the exact code vibe:
require WWW::RobotRules::AnyDBM_File;
require LWP::RobotUA;
# Create a robot useragent that uses a diskcaching RobotRules
my $rules = WWW::RobotRules::AnyDBM_File->new( 'my-robot/1.0', 'cachefile' );
my $ua = WWW::RobotUA->new( 'my-robot/1.0', 'me@foo.com', $rules );
# Then just use $ua as usual
$res = $ua->request($req);
πΈ DESCRIPTION πΈ
This is a subclass of WWW::RobotRules that uses the AnyDBM_File package to implement persistent diskcaching of robots.txt and host visit information. No cap, it's giving persistent diskcaching realness. π¦
The constructor (the new() method) takes an extra argument specifying the name of the DBM file to use. If the DBM file already exists, then you can specify undef as agent name as the name can be obtained from the DBM database. So if your DBM file is already living its best life, that agent-name arg can be undef β the name can be obtained from the DBM database. π
π¦ SEE ALSO π¦
WWW::RobotRulesLWP::RobotUA
π AUTHORS π
- Hakan Ardo
<hakan@munin.ub2.lu.se> - Gisle Aas
<aas@sn.no>
mwah π cute sign-off time: this page is from perl v5.42.0, dated 2012-02-20, with footer title WWW::Ro...BM_File(3). periodt π
π¦ where this page comes from
- opensuse-leap 16.0: perl-WWW-RobotRules 6.02-160000.2.2 Β· Artistic-1.0 or GPL-1.0+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms