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::RobotRules
  • LWP::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