Skip to content

Instantly share code, notes, and snippets.

@niku
Created March 22, 2009 15:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save niku/83197 to your computer and use it in GitHub Desktop.
Save niku/83197 to your computer and use it in GitHub Desktop.
- module: RSS::load
config:
url:
- http://sirase.ru/consadole/news.rdf
- http://sirase.ru/consadole/snews.rdf
- http://sirase.ru/consadole/consa-burn.rdf
- http://sirase.ru/consadole/forza_consadole.rdf
- http://sirase.ru/consadole/hochi_consadole.rdf
- http://www.nikkansports.com/rss/soccer/jleague/consadole.rdf
- module: Filter::deduped
config:
path: /virtual/niku/pragger_makes/deduped/mail_post
# <br>,<br/>,<br />を\nに変換
- module: Filter::ex_subs
config:
regex: <br ?\/?>
to: "\n"
target: description
# 改行の連続を一つにまとめる
- module: Filter::ex_subs
config:
regex: \n\n+
to: "\n"
target: description
# タグを除去
- module: Filter::ex_subs
config:
regex: <.+ ?/?>
to: ""
target: description
# 行の先頭の空白を除去
- module: Filter::ex_subs
config:
regex: ^[ | ]+
to: ""
target: description
- module: Publish::send_mail_by_gmail
config:
account: your_account@gmail.com
password: your_password
to_addrs:
- your_account@example.jp
waiting_time: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment