Skip to content

Instantly share code, notes, and snippets.

@stevencorona
Created August 13, 2010 02:28
Show Gist options
  • Save stevencorona/522143 to your computer and use it in GitHub Desktop.
Save stevencorona/522143 to your computer and use it in GitHub Desktop.
task :mint => :environment do
Mechanize.html_parser = Nokogiri::HTML
agent = Mechanize.new
agent.get('https://wwws.mint.com/login.event?task=L') do |page|
login_result = page.form_with(:action => "loginUserSubmit.xevent") do |login|
login.username = ""
login.password = "";
end.submit
result = agent.get("https://wwws.mint.com/transactionDownload.event?accountId=0&queryNew=&offset=0&comparableType=8");
p result
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment