otsune's SnakeOil RSSフィード

python -c "print''.join([chr(x) for x in 111&1101,110+~-~11,10^11*11,110+~-~11,-~101,-~11^11*11,~-110,111&11*11,11+11+10,11|~-0110,1-~11^11*11,10^11*11,-~11^11*11,110,101])"

2006-04-21

COREBlog向けのEntryFullTextを書いた

| COREBlog向けのEntryFullTextを書いた - otsune's SnakeOil  を含むブックマーク はてなブックマーク - COREBlog向けのEntryFullTextを書いた - otsune's SnakeOil  COREBlog向けのEntryFullTextを書いた - otsune's SnakeOil  のブックマークコメント

assets/plugins/Filter-EntryFullText/coreblog.pl

sub handle_force {
    my($self, $args) = @_;
    $args->{content} =~ m!<div class="footer">\n.*Powered by COREBlog!
}

sub extract {
    my($self, $args) = @_;
    my $body = ($args->{content} =~ m!(<div class="category">.*?)<br clear="all" />!s)[0];
    if ($body && ($args->{content} =~ m!<a name="more"></a>\n\s*(.*?)\n?</p>!s)[0]) {
        $body .= $1;
    }
    $body;
}

実はリクナビblogCOREBlogなので、blog_tech.rikunabi_next.yamlのhandleを変えるだけで対応できる気もするが。

トラックバック - http://subtech.g.hatena.ne.jp/otsune/20060421