Giraffeの登録数をはてなグラフで描いてみた
毎日 23:50 更新です。
Rubyで書いたら簡単すぎて泣けた。rubygems 万歳!*1
require 'rubygems' require 'postgres' require 'hatena/api/graph' $KCODE='u' con = PGconn.connect(…) res = con.exec("SELECT COUNT(*) FROM …テーブル名…") graph = Hatena::API::Graph.new(…ユーザー名…, …パスワード…) graph.post_data('Giraffe登録アプリ数', 'value' => res[0][0].to_i)