http://home.dlsite.com/new を Plagger で。
新着作品以外へのリンクがないので、本当は
follow_link: /work/=/product_id/
だけでいいけど、一応 follow_xpath で限定してみる。
config.yaml
plugins:
- module: Subscription::Config
config:
feed:
- url: http://home.dlsite.com/new
meta:
follow_xpath: //div[@class='infomation_2']//a[contains(@href, 'http://home.dlsite.com/work/=/product_id/')]
- module: CustomFeed::Simple
- module: Filter::EntryFullText
- module: Filter::FindEnclosures
- module: Filter::Rule
rule:
module: Deduped
assets/plugins/Filter-EntryFullText/dlsite.yaml
author: Kouhei Yanagita handle: http://home\.dlsite\.com/work/=/product_id/ extract: <div class="centerbar">.*?<div class="center_bar_messege">.*?</div>.*?</div>(.*?<TD valign="top" align="left" class="works_name1">(.*?)</TD>.*?)<table cellspacing="10" cellpadding="0" align="center"> extract_capture: body title
作ってはみたものの、DLsite.com で買い物をしたことはなかったりする。
config.yaml
plugins:
- module: Subscription::Config
config:
feed:
- url: http://komorebi-note.com/top/index.html
- module: CustomFeed::Config
- module: Filter::Rule
rule:
module: Deduped
compare_body: 1
- module: Filter::FindEnclosures
- module: Filter::BreakEntriesToFeeds
- module: Publish::Gmail
config:
mailto: ...
assets/plugins/CustomFeed-Config/komorebi-notebook.yaml
author: Kouhei Yanagita
match: http://komorebi-note.com/top/index.html
extract: <p>(?:<font size="2">)?(\d\d?/\d\d?)(?:</font>)?</p>(.*?)(?=<p>(?:<font size="2">)?\d\d?/\d\d?(?:</font>)?</p>)
extract_capture: title body
extract_after_hook: $data->{link} = 'http://komorebi-note.com/top/index.html#' . $data->{title}
が必要です。