Posts tagged with "mechanize"

Faking a browser with Mechanize

Some time ago I tried to get the current balance of my prepaid mobile phone plan in order to implement some kind of notification if it is lower than 10 Euro. Unfortunately my ISP doesn't offer any API to get this information automatically, so my first attempt was to send a POST request using cURL to login to the website of my ISP and then parse the HTML to gain the current balance.

read more