{"id":104,"date":"2011-02-09T21:52:29","date_gmt":"2011-02-09T21:52:29","guid":{"rendered":"http:\/\/www.coolfactor.org\/blog\/?p=104"},"modified":"2011-02-09T21:52:29","modified_gmt":"2011-02-09T21:52:29","slug":"automatically-downloading-orange-bills","status":"publish","type":"post","link":"http:\/\/www.coolfactor.org\/blog\/2011\/02\/09\/automatically-downloading-orange-bills\/","title":{"rendered":"Automatically downloading Orange bills"},"content":{"rendered":"<p>I&#8217;ve been getting annoyed recently with Orange&#8217;s policy of deleting user accounts from their website after relatively short periods of inactivity. I don&#8217;t want to have to log into their website just to avoid having to register for a new account the next time I want to use it.<\/p>\n<p>So I wrote a script to log in on my behalf. While it&#8217;s logged in, it may as well do something useful, so it downloads the PDF versions of my bills, skipping bills which it has already downloaded.<\/p>\n<p>It&#8217;s in perl and uses WWW::Mechanize to do most of the work.<\/p>\n<p>You can pull the source code using monotone from mtn.coolfactor.org (branch org.coolfactor.scraping.orange) or you can <a href=\"http:\/\/mtn.coolfactor.org\/viewmtn.py\/branch\/changes\/org.coolfactor.scraping.orange\">browse it here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been getting annoyed recently with Orange&#8217;s policy of deleting user accounts from their website after relatively short periods of inactivity. I don&#8217;t want to have to log into their website just to avoid having to register for a new &hellip; <a href=\"http:\/\/www.coolfactor.org\/blog\/2011\/02\/09\/automatically-downloading-orange-bills\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/www.coolfactor.org\/blog\/wp-json\/wp\/v2\/posts\/104"}],"collection":[{"href":"http:\/\/www.coolfactor.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.coolfactor.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.coolfactor.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.coolfactor.org\/blog\/wp-json\/wp\/v2\/comments?post=104"}],"version-history":[{"count":3,"href":"http:\/\/www.coolfactor.org\/blog\/wp-json\/wp\/v2\/posts\/104\/revisions"}],"predecessor-version":[{"id":107,"href":"http:\/\/www.coolfactor.org\/blog\/wp-json\/wp\/v2\/posts\/104\/revisions\/107"}],"wp:attachment":[{"href":"http:\/\/www.coolfactor.org\/blog\/wp-json\/wp\/v2\/media?parent=104"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.coolfactor.org\/blog\/wp-json\/wp\/v2\/categories?post=104"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.coolfactor.org\/blog\/wp-json\/wp\/v2\/tags?post=104"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}