I found a neat Ruby script to sum all purchases done on Amazon.de (no other stores like US) for a given year: https://github.com/pwaldhauer/amazon-account-crawler
After installing Ruby and the necessary Ruby Gems Highline and Mechanize I'm able to run the script. But unfortunately I'm behind a proxy server so the script fails with a "Timeout" error.
I read a lot but didn't found out how to use a proxy server. I tried to "set" a HTTP_PROXY environment variable, but still get errors. I also used the following call:
agent.set_proxy('127.0.0.1', '3128')
But this didn't worked out as well. I have the feeling that the HTTP proxy worked but after the login Amazon uses HTTPS and this fails. Can someone tell me a simple way how to tell Mechanize to use a HTTP and HTTPS proxy server?