What is the best way to write a supported web clip application?

I wrote a perl script some time ago, which went into my online bank and emailed me my balance and mini presentation every day. I found it very useful for tracking my finances. The only problem is that I only wrote it using perl and curl, and it was pretty complicated and hard to maintain. After several instances of my bank changed their web page, I became tired of debugging it so that it would be updated.

So what's the best way to write such a program so that it is easy to maintain? I would like to write a good well-designed version in Perl or Java, which is easy to update when the bank inevitably starts playing on its website.

+5
source share
7 answers

In Perl, something like WWW::Mechanizecan already make your script simpler and more reliable, as it can find HTML forms in previous answers from the site. You can fill out these forms to prepare a new request. For example:

my $mech = WWW::Mechanize->new();
$mech->get($url);
$mech->submit_form(
    form_number => 1,
    fields      => { password => $password },
);
die unless ($mech->success);
+13
source

, XPath . .

+6
+2

, , MS Money Quicken, . API, (, Excel Spreadsheet:: ParseExcel Quicken docs :: QIF).

( ): , , ? / API ( Quicken .. , ).

+1

perl web:: scraper:

0

All Articles