Skip to content

Instantly share code, notes, and snippets.

@smallfield
Created September 30, 2014 15:01
Show Gist options
  • Save smallfield/d2d758c1a45a9fb35802 to your computer and use it in GitHub Desktop.
Save smallfield/d2d758c1a45a9fb35802 to your computer and use it in GitHub Desktop.
野村ネット&コールの評価損益取得
require "mechanize"
ID=""
PASSWD=""
agt = Mechanize.new
agt.user_agent_alias = 'Windows IE 9'
page = agt.get("https://netcall.nomura.co.jp/oms")
form = page.forms[0]
form.user_id = ID
form.user_password = PASSWD
page = agt.submit(form)
puts page.search('//*[@id="investment-status"]/div/div/div/table[2]/tbody/tr/td/span').text.gsub("+","").gsub(",","")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment