HK-DMZ PLUS.COM の EntryFullText(?)
HK-DMZ PLUS.COM をPlaggerで扱いたくなったので,EntryFullTextを見よう見まねで書いてみた.
author: HORII Keima custom_feed_handle: http://hk.dmz-plus.com/ custom_feed_follow_link: a-news.cgi handle_force: http://hk\.dmz-plus\.com/ extract: <p class=date\d?>(.*?)</p>(.*?)<hr size=3> extract_capture: title body
custom_feed_follow_link がこれでいいのかすこぶる不安です.
include: - /path/to/configs/config.yaml plugins: - module: Subscription::Config config: feed: - url: http://hk.dmz-plus.com/ - module: Filter::Rule rule: - module: Deduped path: /path/to/cache/hk.db - module: Filter::ResolveRelativeLink - module: Filter::EntryFullText config: store_html_on_failure: 1 - module: Filter::BreakEntriesToFeeds
$feed->meta->{follow_link} もこれでいいんかいなとか.
毎日のニュースのリンク先をFeedにするわけではないので注意.