大阪日刊スポーツ用EntryFullText
大変便利なEntryFullTextですが、ひとつ不満が見つかりました。付属しているモジュールに中日ドラゴンズ用はあるのに、阪神タイガース用がありません。
というわけで、大阪日刊スポーツ用のEntryFullTextを作って見ました。EntryFullTextモジュールの書き方がよくわかっていませんが、一応動いています。
以下をassets/plugins/filter-entryfulltext/osaka_nikkansports.yamlへ保存し、
1 # upgrade http://osaka.nikkansports.com/baseball/professional/tigers/top-tigers.html
2 author: Nobuhito Sato
3 custom_feed_handle: http://osaka\.nikkansports\.com/
4 custom_feed_follow_link: /baseball/professional/tigers/.*-ot-tp0-.*html
5 handle: http://osaka\.nikkansports\.com/
6 extract: <!-- google_ad_section_start(name=s1) -->(.*)<!-- google_ad_section_end(name=s1) -->
7 extract_capture: body
config.yamlへ
- module: Subscription::Config
config:
feed:
- url: http://osaka.nikkansports.com/baseball/professional/tigers/top-tigers.html
を追加してください。これで中日に劣らずにすみます。。