HTTP::RobotsTag - Parse Robots Tag In HTTP Headers
use HTTP::RobotsTag; my $response = $lwp->get( $url ); my $p = HTTP::RobotsTag->new(); my $rule = $p->parse_headers( $response ); if ($rule->can_index()) { ... } if ($rule->is_available( $dt )) { ... }
HTTP::RobotsTag parses HTTP headers for X-Robots-Tag headers and stores the information in a Rules object.
Accepts a HTTP::Headers (or an object that implements the header()) method, and looks for X-Robots-Tag headers.
Copyright (c) 2007 Daisuke Maki <daisuke@endeworks.jp>
HTML::RobotsTag::Rules
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html
To install HTTP::RobotsTag, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTTP::RobotsTag
CPAN shell
perl -MCPAN -e shell install HTTP::RobotsTag
For more information on module installation, please visit the detailed CPAN module installation guide.