freewill...

A Dialy Category

Archive

Contents

サーチする:
Amazon.co.jp のロゴ

2003.11.19

weblogupdates.ping?

 なんか更新したらweblogs.comってところにpingを送ると更新情報が出るよ。って教えられて、いろいろ調べてみた。rubyでxmlrpcとかいうフォーマットでwebAPIとかいうやつを呼ぶといいらしい。。なんのこっちゃだよな。。まぁ、ミスってもおそらく大きなサイトだから、プロテクション張ってあるだろうということで試してみた。
 まずrubyのxmlrpcライブラリをインスコ。そこのサイトにはnqxmlっていうxmlパーサーがいいって書いてあるんでそれも。そんでもってプログラム。

#/usr/bin/ruby
con=XMLRPC::Client.new("rpc.weblogs.com", "/RPC2", 80)
ret = con.call("weblogUpdates.ping", "free will...",
          "http://plaza19.mbn.or.jp/~tuck/")
puts ret

 で実行。結果でました。

Thanks for the ping. 
We checked and found that the "free will" weblog has 
not changed, so it has not been added to changes.xml.

 ん?なんだって?。我々は、チェックしました、そして、free will weblogは変更されていないと認識されました。changes.xmlにはのせてません。
・・失敗?。変更してからもう一回やってみるか・・・。

 Thanks for the ping. 
 We checked and found that the "free will" weblog has 
 changed, so it will appear in changes.xml next time it is updated.

 いけたっぽい。

Category:Software

Top 前へ戻る