argra****@users*****
argra****@users*****
2011年 3月 10日 (木) 00:41:07 JST
Index: docs/modules/libwww-perl-5.813/LWP/RobotUA.pod diff -u docs/modules/libwww-perl-5.813/LWP/RobotUA.pod:1.1 docs/modules/libwww-perl-5.813/LWP/RobotUA.pod:1.2 --- docs/modules/libwww-perl-5.813/LWP/RobotUA.pod:1.1 Thu Oct 21 04:11:21 2010 +++ docs/modules/libwww-perl-5.813/LWP/RobotUA.pod Thu Mar 10 00:41:07 2011 @@ -63,15 +63,13 @@ I<LWP::RobotUA> をあなたのユーザーエージェントとして使うとき、 実際の所これらのことについて考える必要はありません; -C<robots.txt> files -are automatically consulted and obeyed, the server isn't queried -too rapidly, and so on. +自動的に C<robots.txt> ファイルを参考にしてそれに従い、サーバにあまり +急激に問い合わせず、など。 通常の I<LWP::UserAgent> を使って (C<< $ua->get(...) >>, C<< $ua->head(...) >>, C<< $ua->request(...) >> などを使って) 好きなように単純にリクエストを送信すれば、 -この特別なエージェントはあなたがナイスであることを保証します。 -(TBT) +この特別なエージェントはいい感じになることを保証します。 =head1 METHODS @@ -105,12 +103,11 @@ =end original -The LWP::UserAgent options C<agent> and C<from> are mandatory. The -options C<delay>, C<use_sleep> and C<rules> initialize attributes -private to the RobotUA. If C<rules> are not provided, then -C<WWW::RobotRules> is instantiated providing an internal database of -F<robots.txt>. -(TBT) +LWP::UserAgent のオプション C<agent> と C<from> は必須です。 +オプション C<delay>, C<use_sleep>, C<rules> は RobotUA 独自の +属性を初期化します。 +C<rules> が提供されない場合、C<WWW::RobotRules> は +F<robots.txt> の内部データベースを使って実体化されます。 =begin original @@ -119,9 +116,8 @@ =end original -It is also possible to just pass the value of C<agent>, C<from> and -optionally C<rules> as plain positional arguments. -(TBT) +また、単に C<agent>, C<from> (およびオプションとして C<rules>) を +通常の順序付き引数として渡すこともできます。 =item $ua->delay @@ -137,9 +133,8 @@ 同じサーバへのリクエスト間の最小限の遅延(秒単位)を設定/取得します。 デフォルトは 1 分です。 -Note that this number doesn't -have to be an integer; for example, this sets the delay to 10 seconds: -(TBT) +この数値は整数である必要はないことに注意してください; 例えば、 +以下のように設定すると 10 秒遅延します: $ua->delay(10/60);