偽造xmlでPublish::MTをWPに使う。


疑似AutoLinkの完成で、いよいよMT稼働の意味がなくなってきたので今度はtwitter2WPをもくろむ。Plaggerでの更新だが、ままPublish::MTを使用する。
つ Izumiのblog [Plagger] blogへ自動投稿.
参考にして、rsd.xmlを手動で作成した。 ((うーんxmlとかのコード入力がきちんと表示されないなあ。なんか間違えているのか>SyntaxHighlight))
で、YAMLはいつもどおりで
[sourcecode language=’c#’]
lobal:
log:
level: debug
cache:
base: /home/xiaopu/yaml
plugins:
– module: Subscription::Config
config:
feed:
– url: http://www.google.com/reader/public/atom/user/17390768464183228162/label/twitter?n=140
– module: Filter::TinyURL
config:
be: long
– module: Filter::AssembleEntries
rule:
module: Deduped
path: /home/xiaopu/yaml/cache/twit2wp.db
config:
title: Taraco-Sell ToDIE
link: http://twitter.com/taraco/
delimiter:
reverse: 1
timelabel: hms
empty_msg: \xe3\x81\xaa\xe3\x82\x93\xe3\x82\x82\xe3\x83\x8a\xe3\x83\x83\xe
3\x82\xb7\xe3\x83\xb3\xe3\x82\xb0\xe3\x81\xaa\xe4\xb8\x80\xe6\x97\xa5
del_word: taraco:
– module: Publish::MT
config:
rsd: http://www.xiaopu.net/word/rsd.xml
username: taraco
password: password
title: Taraco-Sell TO-DIE
category: Twitter
[/sourcecode]
あとはcronを回すだけ。元旦から行きましょうか。
You can leave a response, or trackback from your own site.