RubyのWWW::MechanizeとHpricotでmixiの更新情報を取得する - 電脳戦士ハラキリ -SE道とは死ぬ事と見つけたり-

screenshot

特定のコミュニティの更新情報を取得する実験 require 'rubygems' require 'mechanize' require 'hpricot' class TopicUpdInfo attr_accessor :title attr_accessor :url attr_accessor :updDate public def to_s puts @updDate + ' ' + @title + ' ' + @url end end # Mechanizeの設定 agent = WWW::Mechanize.new agent.user_agent_alias = 'Mac Safari' # ログイン処理 page = agent.get('http://mixi.jp') search_form = page.forms.with.name('login_form').first search_form.email = '[メールアドレス]'...

http://d.hatena.ne.jp/hagino_3000/20080908/1220809969
http://b.hatena.ne.jp/entry/http://d.hatena.ne.jp/hagino_3000/20080908/1220809969