Gungho::Component::RobotRules::Rule - robots.txtルール
use Gungho::Component::RobotRules::Rule; my $rule = Gungho::Component::RobotRules::Rule->new( 'UserAgent A' => [ '/foo', '/bar' ], 'UserAgent B' => [ '/baz', '/quux' ], );
特定のホストのrobots.txtルールを保存します。
新規にルールオブジェクトを作成します。
オブジェクトを初期化します。
$urlで指定されたURLが取得を許可されていれば正を返します。
$url
$stringが$cのuser_agentにマッチすれば正を返します。
$string
$c
user_agent
To install Gungho, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Gungho
CPAN shell
perl -MCPAN -e shell install Gungho
For more information on module installation, please visit the detailed CPAN module installation guide.