デイリーポータルZのクラブ活動をplaggerで
plaggerは使ってたけど、初めてEFT書いてみました。
dpz_club.yaml
author: treeham custom_feed_handle: http://portal\.nifty\.com/cs/club/list/\w+/1\.htm custom_feed_follow_link: /cs/club/detail/\d+/1\.htm handle: http://portal\.nifty\.com/cs/club/detail/\d+/1\.htm extract: <title>(.*?)<\/title>.*?<div align="center">(.*)<\/div> extract_capture: title body
config.yaml
plugins: - module: Subscription::Config config: feed: - url: http://portal.nifty.com/cs/club/list/otome/1.htm - url: http://portal.nifty.com/cs/club/list/inu/1.htm - url: http://portal.nifty.com/cs/club/list/reito/1.htm - url: http://portal.nifty.com/cs/club/list/yakyu/1.htm - url: http://portal.nifty.com/cs/club/list/amagoi/1.htm - module: CustomFeed::Simple - module: Filter::Rule rule: module: Deduped path: /home/usr/plagger/dedupe-dpz_club.db - module: Filter::EntryFullText - module: Filter::BreakEntriesToFeeds config: use_entry_title: 1 - module: Publish::Gmail config: mailto: mailaddress mailfrom: mailaddress mailroute: via: smtp_tls host: smtp.gmail.com:587 username: mailaddress password: password
抜き出し方は大雑把です。ほんとはSubscription::Configのurl一覧はデイリーポータルZのクラブ活動のところから抜き出したかったんですが、わからなかったのでとりあえず直接かいてます。