03/08
Sun
2009
03/02
Mon
2009
03/02
Mon
2009
「スクライピング」というのを知らなかったので調べてみた。
ライブラリもいろいろでいてる。rubyのscrubytというのを使おうと思ったが結構難関が多い。。。
①install→失敗
[root@VMware1 Server]# gem install --remote scrubyt
Building native extensions. This could take a while...
ERROR: Error installing scrubyt:
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb install --remote scrubyt
can't find header files for ruby.
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/hpricot-0.6.164 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/hpricot-0.6.164/ext/hpricot_scan/gem_make.out
→buildに必要なheaderファイルはruby-develをインストールすると入るらしい。
②ruby-develインストール
③scrubyt 再度インストール
[root@VMware1 Server]# gem install --remote scrubyt
Building native extensions. This could take a while...
Building native extensions. This could take a while...
Successfully installed hpricot-0.6.164
Successfully installed nokogiri-1.2.1
Successfully installed mechanize-0.9.1
Successfully installed scrubyt-0.4.06
4 gems installed
Installing ri documentation for hpricot-0.6.164...
Installing ri documentation for nokogiri-1.2.1...
Installing ri documentation for mechanize-0.9.1...
Installing ri documentation for scrubyt-0.4.06...
Installing RDoc documentation for hpricot-0.6.164...
Installing RDoc documentation for nokogiri-1.2.1...
Installing RDoc documentation for mechanize-0.9.1...
Installing RDoc documentation for scrubyt-0.4.06...
→正常に終わった模様。
④確認
[root@VMware1 Server]# gem search
*** LOCAL GEMS ***
hpricot (0.6.164)
mechanize (0.9.1)
nokogiri (1.2.1)
scrubyt (0.4.06) ←入ってます。
だがまだ実際に動かせてはいない。。。。
02/22
Sun
2009
01/27
Tue
2009
仕事帰りに久しぶりのらーめん。
渋谷で駅のそばにある金丸伝。
ん?ここってセンター街にもある店?近くに複数店舗出すのって儲かるのかな~。
渋谷みたいに人口密集しまくりならいいのか。
「黒丸」という怪しげなのを注文。
確かに黒い。なんだろう。イカ墨?焦がし油?味からは。。。。わからない。
らーめんはまぁ普通でした。もうちょいこってりがいいなりよ。
3点だな。
近くに武蔵を見つけた。次回は武蔵に行こう。