rubyはてな

はてなグラフのAPI

テクノラティのランクデータを手で更新してきましたが、下記のURLで自動化できそう。
http://d.hatena.ne.jp/keyword/%A4%CF%A4%C6%A4%CA%A5%B0%A5%E9%A5%D5%BF%F4%C3%CD%C5%D0%CF%BFAPI


rubygemsパッケージのインストール

$ sudo aptitude install rubygems
Reading package lists... Done
Building dependency tree... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Reading task descriptions... Done
Building tag database... Done
The following NEW packages will be automatically installed:
libgems-ruby1.8 ruby1.8-dev
The following NEW packages will be installed:
libgems-ruby1.8 ruby1.8-dev rubygems
0 packages upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 892kB of archives. After unpacking 2291kB will be used.
Do you want to continue? [Y/n/?]
Writing extended state information... Done
Get:1 http://ftp2.jp.debian.org etch/main libgems-ruby1.8 0.9.0-5 [148kB]
Get:2 http://ftp2.jp.debian.org etch/main ruby1.8-dev 1.8.5-4 [698kB]
Get:3 http://ftp2.jp.debian.org etch/main rubygems 0.9.0-5 [46.4kB]
Fetched 892kB in 3s (282kB/s)
Selecting previously deselected package libgems-ruby1.8.
(Reading database ... 17645 files and directories currently installed.)
Unpacking libgems-ruby1.8 (from .../libgems-ruby1.8_0.9.0-5_all.deb) ...
Selecting previously deselected package ruby1.8-dev.
Unpacking ruby1.8-dev (from .../ruby1.8-dev_1.8.5-4_arm.deb) ...
Selecting previously deselected package rubygems.
Unpacking rubygems (from .../rubygems_0.9.0-5_all.deb) ...
Setting up libgems-ruby1.8 (0.9.0-5) ...
Setting up ruby1.8-dev (1.8.5-4) ...
Setting up rubygems (0.9.0-5) ...
$

hatenaapiのインストール

なぜか、いくら待っても終わらない…
ファイルは、ダウンロードされているようなのですが、仕方なく強制終了

$ sudo gem install hatenaapigraph
Bulk updating Gem source index for: http://gems.rubyforge.org
ERROR:  Interrupted
$ ls /var/lib/gems/1.8/cache/hatenaapigraph-0.1.1.gem
/var/lib/gems/1.8/cache/hatenaapigraph-0.1.1.gem
$

今日は、おしまい

タイトルとURLをコピーしました