I put together a little Ruby script adapted from a smaller script I saw somewhere on getting the balance of your Wells Fargo accounts. You can download it and use it.

You may also find the GeekTool script I put together useful. Display your account balance on your desktop, refreshed as frequently as you want!

/path/to/ruby <<"EOF"
  require '~/lib/wells_fargo.rb'
  s = WellsFargo::Session.new
  s.login 'myssn', 'mypassword'
  balance = s.extract_total(s.page.body)
  s.logout

  if balance.nil?
    puts "Could not get balance"
    File.open(File.expand_path('~/.wells_fargo_page.html'), 'w') do |f|
      f.write s.page.body
    end
  else
    puts "Wells Fargo Balance: $" + balance.to_s
  end
EOF