Plagger

少し以前からPlaggerを始めて、はまった挙句に昨日までにとりあえず動くところまでは来ている。
で、最初の目的であるHTMLの更新チェックをするためにconfig.yamlを書いてみたがどうにも動かない。どうしても

Plagger [error] http://XXXX is not aggregated by any aggregator

になって動かない。
で、いろいろ調べているとPlaggerの本家本元のページに行き着いた。そこに書かれていたconfig.yamlを参考にというか、いつもの通りまるっとコピーしてテストを行う。
動いている足場を作りそこから目的に向かって接近して行くというやり方なんだけど、案に相違して上手く行かない。
今使っているconfig.yamlは以下の通り。

global:
 assets_path: /root/perl/plagger/assets/
 timezone: Asia/Tokyo
 log:
    level: debug
                                                                                                                                           
plugins:
  - module: Subscription::Config
    config:
      feed:
       - url: http://www.bailii.org/recent-decisions-ew.html
    meta:
      follow_link: /\d{4}/\d{4}\.html
  - module: CustomFeed::Simple

環境はCentOS3.6、Perl5.8.8、Plagger0.7.17
で、出た結果は

Plagger [info] plugin Plagger::Plugin::Subscription::Config loaded.
Plagger [info] plugin Plagger::Plugin::CustomFeed::Simple loaded.
Plagger [info] plugin Plagger::Plugin::Bundle::Defaults loaded.
Plagger [info] plugin Plagger::Plugin::Aggregator::Simple loaded.
Plagger [info] plugin Plagger::Plugin::Summary::Auto loaded.
Plagger [info] plugin Plagger::Plugin::Summary::Simple loaded.
Plagger [info] plugin Plagger::Plugin::Namespace::HatenaFotolife loaded.
Plagger [info] plugin Plagger::Plugin::Namespace::MediaRSS loaded.
Plagger [info] plugin Plagger::Plugin::Namespace::ApplePhotocast loaded.
Plagger::Plugin::Aggregator::Simple [info] Fetch http://www.bailii.org/recent-decisions-ew.html
Plagger::Cache [debug] Cache HIT: Aggregator-Simple|http://www.bailii.org/recent-decisions-ew.html
Plagger::Plugin::Aggregator::Simple [debug] 304: http://www.bailii.org/recent-decisions-ew.html
[test:aggregator] self:Plagger::Plugin::Aggregator::Simple=HASH(0xa4f5d84)
[test:aggregator] res:URI::Fetch::Response=HASH(0xa642d70)
[test:discover] self:Plagger::FeedParser
[test:discover] res:URI::Fetch::Response=HASH(0xa642d70)
[test:discover] res->uri:URI::Fetch::Response=HASH(0xa642d70)->uri
[test:discover] return:(nothing)
[test:aggregator] http://www.bailii.org/recent-decisions-ew.html
feed url
[test:aggregator] NON feed_url
Plagger [error] http://www.bailii.org/recent-decisions-ew.html is not aggregated by any aggregator

[test:XXX]から始まるのはPlaggerやらのプラグインの動作を確認するために入れたスナップショットの表示。
今のところわかったのはFeed::Findのfind_in_htmlメソッドから呼び出されているHTML::Parserのparseメソッドの終了後にFeedsの値が設定されていないためだというところまではわかった。

はっきり言って遊ばれているような。
Perlをちょっと書く程度のスキルしかない自分がHACKの真似事をしているから笑ってしまう。
本当に勉強になるよ。

Software Design (ソフトウエア デザイン) 2006年 10月号 [雑誌]

Software Design (ソフトウエア デザイン) 2006年 10月号 [雑誌]

Software Designの2007年1月号にはプラグインの説明の記事があった。