keiomobile.rb `� �4V ��4V require 'mechanize' require 'pit' config = Pit.get("keiojp",:require => { "account" => "Your keio.jp account", "password" => "Your keio.jp password" }) @agent = Mechanize.new @agent.max_history = 5 @agent.get 'https://authserv2.hc.keio.ac.jp/login.html' @form = @agent.page.forms[0] @form.field('name').value = config["account"] @form.field('pass').value = config["password"
![日吉キャンパスのネットワーク用のアレ](https://cdn-ak-scissors.b.st-hatena.com/image/square/1ef26f6cb4349557952890dbe3e567f7f98dc151/height=288;version=1;width=512/https%3A%2F%2Fgithub.githubassets.com%2Fassets%2Fgist-og-image-54fd7dc0713e.png)