Skip Menu |

This queue is for tickets about the Finance-Bank-Smile CPAN distribution.

Report information
The Basics
Id: 46740
Status: open
Priority: 0/
Queue: Finance-Bank-Smile

People
Owner: Nobody in particular
Requestors: lykoszine [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: still functional?
Date: Mon, 8 Jun 2009 17:06:39 +0100
To: bug-Finance-Bank-Smile [...] rt.cpan.org
From: Samuel Wright <lykoszine [...] gmail.com>
Hi Guys, Running perl 5.10 on Ubuntu 8.10 here. cpan[3]> install WWW::Mechanize WWW::Mechanize is up to date (1.54). cpan[4]> install HTML::TableExtract HTML::TableExtract is up to date (2.10). cpan[5]> install Finance::Bank::Smile Finance::Bank::Smile is up to date (0.05). And get the following: There is no form numbered 1 at /usr/local/share/perl/5.10.0/Finance/Bank/Smile.pm line 43 There is no form numbered 1 at /usr/local/share/perl/5.10.0/WWW/Mechanize.pm line 1824. Is this module still functional? S
Subject: Re: [rt.cpan.org #46740] still functional?
Date: Mon, 8 Jun 2009 21:16:51 +0100
To: bug-Finance-Bank-Smile [...] rt.cpan.org
From: Richard Panman <richard.panman [...] gmail.com>
No longer maintained by me, so i expect it's out of date. No time any more :-( 2009/6/8 Samuel Wright via RT <bug-Finance-Bank-Smile@rt.cpan.org>: Show quoted text
> Mon Jun 08 12:07:44 2009: Request 46740 was acted upon. > Transaction: Ticket created by lykoszine@gmail.com >       Queue: Finance-Bank-Smile >     Subject: still functional? >   Broken in: (no value) >    Severity: (no value) >       Owner: Nobody >  Requestors: lykoszine@gmail.com >      Status: new >  Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=46740 > > > > Hi Guys, > > Running perl 5.10 on Ubuntu 8.10 here. > cpan[3]> install WWW::Mechanize > WWW::Mechanize is up to date (1.54). > cpan[4]> install HTML::TableExtract > HTML::TableExtract is up to date (2.10). >  cpan[5]> install Finance::Bank::Smile > Finance::Bank::Smile is up to date (0.05). > > And get the following: > There is no form numbered 1 at > /usr/local/share/perl/5.10.0/Finance/Bank/Smile.pm line 43 > There is no form numbered 1 at > /usr/local/share/perl/5.10.0/WWW/Mechanize.pm line 1824. > > Is this module still functional? > > S > >
Subject: Re: [rt.cpan.org #46740] still functional?
Date: Mon, 8 Jun 2009 22:02:03 +0100
To: bug-Finance-Bank-Smile [...] rt.cpan.org
From: Samuel Wright <lykoszine [...] gmail.com>
Hey, Cheers for the quick ping back! I can't believe Smile have STILL not sorted out a download. Bloody rubbish. Cheers S On Mon, Jun 8, 2009 at 9:17 PM, Richard Panman via RT<bug-Finance-Bank-Smile@rt.cpan.org> wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=46740 > > > No longer maintained by me, so i expect it's out of date. > > No time any more :-( > > 2009/6/8 Samuel Wright via RT <bug-Finance-Bank-Smile@rt.cpan.org>:
>> Mon Jun 08 12:07:44 2009: Request 46740 was acted upon. >> Transaction: Ticket created by lykoszine@gmail.com >>       Queue: Finance-Bank-Smile >>     Subject: still functional? >>   Broken in: (no value) >>    Severity: (no value) >>       Owner: Nobody >>  Requestors: lykoszine@gmail.com >>      Status: new >>  Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=46740 > >> >> >> Hi Guys, >> >> Running perl 5.10 on Ubuntu 8.10 here. >> cpan[3]> install WWW::Mechanize >> WWW::Mechanize is up to date (1.54). >> cpan[4]> install HTML::TableExtract >> HTML::TableExtract is up to date (2.10). >>  cpan[5]> install Finance::Bank::Smile >> Finance::Bank::Smile is up to date (0.05). >> >> And get the following: >> There is no form numbered 1 at >> /usr/local/share/perl/5.10.0/Finance/Bank/Smile.pm line 43 >> There is no form numbered 1 at >> /usr/local/share/perl/5.10.0/WWW/Mechanize.pm line 1824. >> >> Is this module still functional? >> >> S >> >>
> >
Subject: Re: [rt.cpan.org #46740] still functional?
Date: Mon, 15 Jun 2009 09:52:36 +0100
To: bug-Finance-Bank-Smile [...] rt.cpan.org
From: Richard Panman <richard.panman [...] gmail.com>
It is rubbish. I put in a request for them to add it ages ago, but no joy. Great customer service... 2009/6/8 Samuel Wright via RT <bug-Finance-Bank-Smile@rt.cpan.org>: Show quoted text
>       Queue: Finance-Bank-Smile >  Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=46740 > > > Hey, > > Cheers for the quick ping back! I can't believe Smile have STILL not > sorted out a download. > Bloody rubbish. > > Cheers > S > > On Mon, Jun 8, 2009 at 9:17 PM, Richard Panman via > RT<bug-Finance-Bank-Smile@rt.cpan.org> wrote:
>> <URL: http://rt.cpan.org/Ticket/Display.html?id=46740 > >> >> No longer maintained by me, so i expect it's out of date. >> >> No time any more :-( >> >> 2009/6/8 Samuel Wright via RT <bug-Finance-Bank-Smile@rt.cpan.org>:
>>> Mon Jun 08 12:07:44 2009: Request 46740 was acted upon. >>> Transaction: Ticket created by lykoszine@gmail.com >>>       Queue: Finance-Bank-Smile >>>     Subject: still functional? >>>   Broken in: (no value) >>>    Severity: (no value) >>>       Owner: Nobody >>>  Requestors: lykoszine@gmail.com >>>      Status: new >>>  Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=46740 > >>> >>> >>> Hi Guys, >>> >>> Running perl 5.10 on Ubuntu 8.10 here. >>> cpan[3]> install WWW::Mechanize >>> WWW::Mechanize is up to date (1.54). >>> cpan[4]> install HTML::TableExtract >>> HTML::TableExtract is up to date (2.10). >>>  cpan[5]> install Finance::Bank::Smile >>> Finance::Bank::Smile is up to date (0.05). >>> >>> And get the following: >>> There is no form numbered 1 at >>> /usr/local/share/perl/5.10.0/Finance/Bank/Smile.pm line 43 >>> There is no form numbered 1 at >>> /usr/local/share/perl/5.10.0/WWW/Mechanize.pm line 1824. >>> >>> Is this module still functional? >>> >>> S >>> >>>
>> >>
> >
Subject: Re: [rt.cpan.org #46740] still functional?
Date: Tue, 16 Jun 2009 11:00:18 +0100
To: bug-Finance-Bank-Smile [...] rt.cpan.org
From: Samuel Wright <lykoszine [...] gmail.com>
Yep, agreed! I found this (not tried it thou), don't know if it is of any use to you. Greasemonkey Smile -> CSV/OFX http://userscripts.org/scripts/review/6976 S On Mon, Jun 15, 2009 at 9:52 AM, Richard Panman via RT<bug-Finance-Bank-Smile@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=46740 > > > It is rubbish. I put in a request for them to add it ages ago, but no > joy. Great customer service... > > 2009/6/8 Samuel Wright via RT <bug-Finance-Bank-Smile@rt.cpan.org>:
>>       Queue: Finance-Bank-Smile >>  Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=46740 > >> >> Hey, >> >> Cheers for the quick ping back! I can't believe Smile have STILL not >> sorted out a download. >> Bloody rubbish. >> >> Cheers >> S >> >> On Mon, Jun 8, 2009 at 9:17 PM, Richard Panman via >> RT<bug-Finance-Bank-Smile@rt.cpan.org> wrote:
>>> <URL: http://rt.cpan.org/Ticket/Display.html?id=46740 > >>> >>> No longer maintained by me, so i expect it's out of date. >>> >>> No time any more :-( >>> >>> 2009/6/8 Samuel Wright via RT <bug-Finance-Bank-Smile@rt.cpan.org>:
>>>> Mon Jun 08 12:07:44 2009: Request 46740 was acted upon. >>>> Transaction: Ticket created by lykoszine@gmail.com >>>>       Queue: Finance-Bank-Smile >>>>     Subject: still functional? >>>>   Broken in: (no value) >>>>    Severity: (no value) >>>>       Owner: Nobody >>>>  Requestors: lykoszine@gmail.com >>>>      Status: new >>>>  Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=46740 > >>>> >>>> >>>> Hi Guys, >>>> >>>> Running perl 5.10 on Ubuntu 8.10 here. >>>> cpan[3]> install WWW::Mechanize >>>> WWW::Mechanize is up to date (1.54). >>>> cpan[4]> install HTML::TableExtract >>>> HTML::TableExtract is up to date (2.10). >>>>  cpan[5]> install Finance::Bank::Smile >>>> Finance::Bank::Smile is up to date (0.05). >>>> >>>> And get the following: >>>> There is no form numbered 1 at >>>> /usr/local/share/perl/5.10.0/Finance/Bank/Smile.pm line 43 >>>> There is no form numbered 1 at >>>> /usr/local/share/perl/5.10.0/WWW/Mechanize.pm line 1824. >>>> >>>> Is this module still functional? >>>> >>>> S >>>> >>>>
>>> >>>
>> >>
> >
Subject: Re: [rt.cpan.org #46740] still functional?
Date: Tue, 16 Jun 2009 11:13:33 +0100
To: bug-Finance-Bank-Smile [...] rt.cpan.org
From: Richard Panman <richard.panman [...] gmail.com>
Cool. See how many frustrated coders there are out there :-) 2009/6/16 Samuel Wright via RT <bug-Finance-Bank-Smile@rt.cpan.org>: Show quoted text
>       Queue: Finance-Bank-Smile >  Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=46740 > > > Yep, agreed! > > I found this (not tried it thou), don't know if it is of any use to you. > > Greasemonkey Smile -> CSV/OFX > http://userscripts.org/scripts/review/6976 > > S > > On Mon, Jun 15, 2009 at 9:52 AM, Richard Panman via > RT<bug-Finance-Bank-Smile@rt.cpan.org> wrote:
>> <URL: https://rt.cpan.org/Ticket/Display.html?id=46740 > >> >> It is rubbish. I put in a request for them to add it ages ago, but no >> joy. Great customer service... >> >> 2009/6/8 Samuel Wright via RT <bug-Finance-Bank-Smile@rt.cpan.org>:
>>>       Queue: Finance-Bank-Smile >>>  Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=46740 > >>> >>> Hey, >>> >>> Cheers for the quick ping back! I can't believe Smile have STILL not >>> sorted out a download. >>> Bloody rubbish. >>> >>> Cheers >>> S >>> >>> On Mon, Jun 8, 2009 at 9:17 PM, Richard Panman via >>> RT<bug-Finance-Bank-Smile@rt.cpan.org> wrote:
>>>> <URL: http://rt.cpan.org/Ticket/Display.html?id=46740 > >>>> >>>> No longer maintained by me, so i expect it's out of date. >>>> >>>> No time any more :-( >>>> >>>> 2009/6/8 Samuel Wright via RT <bug-Finance-Bank-Smile@rt.cpan.org>:
>>>>> Mon Jun 08 12:07:44 2009: Request 46740 was acted upon. >>>>> Transaction: Ticket created by lykoszine@gmail.com >>>>>       Queue: Finance-Bank-Smile >>>>>     Subject: still functional? >>>>>   Broken in: (no value) >>>>>    Severity: (no value) >>>>>       Owner: Nobody >>>>>  Requestors: lykoszine@gmail.com >>>>>      Status: new >>>>>  Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=46740 > >>>>> >>>>> >>>>> Hi Guys, >>>>> >>>>> Running perl 5.10 on Ubuntu 8.10 here. >>>>> cpan[3]> install WWW::Mechanize >>>>> WWW::Mechanize is up to date (1.54). >>>>> cpan[4]> install HTML::TableExtract >>>>> HTML::TableExtract is up to date (2.10). >>>>>  cpan[5]> install Finance::Bank::Smile >>>>> Finance::Bank::Smile is up to date (0.05). >>>>> >>>>> And get the following: >>>>> There is no form numbered 1 at >>>>> /usr/local/share/perl/5.10.0/Finance/Bank/Smile.pm line 43 >>>>> There is no form numbered 1 at >>>>> /usr/local/share/perl/5.10.0/WWW/Mechanize.pm line 1824. >>>>> >>>>> Is this module still functional? >>>>> >>>>> S >>>>> >>>>>
>>>> >>>>
>>> >>>
>> >>
> >
Subject: Re: [rt.cpan.org #46740] still functional?
Date: Tue, 16 Jun 2009 11:19:40 +0100
To: bug-Finance-Bank-Smile [...] rt.cpan.org
From: Samuel Wright <lykoszine [...] gmail.com>
Frustrated coders are what make the world go round, are they not? On Tue, Jun 16, 2009 at 11:13 AM, Richard Panman via RT<bug-Finance-Bank-Smile@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=46740 > > > Cool. See how many frustrated coders there are out there :-) > > 2009/6/16 Samuel Wright via RT <bug-Finance-Bank-Smile@rt.cpan.org>:
>>       Queue: Finance-Bank-Smile >>  Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=46740 > >> >> Yep, agreed! >> >> I found this (not tried it thou), don't know if it is of any use to you. >> >> Greasemonkey Smile -> CSV/OFX >> http://userscripts.org/scripts/review/6976 >> >> S >> >> On Mon, Jun 15, 2009 at 9:52 AM, Richard Panman via >> RT<bug-Finance-Bank-Smile@rt.cpan.org> wrote:
>>> <URL: https://rt.cpan.org/Ticket/Display.html?id=46740 > >>> >>> It is rubbish. I put in a request for them to add it ages ago, but no >>> joy. Great customer service... >>> >>> 2009/6/8 Samuel Wright via RT <bug-Finance-Bank-Smile@rt.cpan.org>:
>>>>       Queue: Finance-Bank-Smile >>>>  Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=46740 > >>>> >>>> Hey, >>>> >>>> Cheers for the quick ping back! I can't believe Smile have STILL not >>>> sorted out a download. >>>> Bloody rubbish. >>>> >>>> Cheers >>>> S >>>> >>>> On Mon, Jun 8, 2009 at 9:17 PM, Richard Panman via >>>> RT<bug-Finance-Bank-Smile@rt.cpan.org> wrote:
>>>>> <URL: http://rt.cpan.org/Ticket/Display.html?id=46740 > >>>>> >>>>> No longer maintained by me, so i expect it's out of date. >>>>> >>>>> No time any more :-( >>>>> >>>>> 2009/6/8 Samuel Wright via RT <bug-Finance-Bank-Smile@rt.cpan.org>:
>>>>>> Mon Jun 08 12:07:44 2009: Request 46740 was acted upon. >>>>>> Transaction: Ticket created by lykoszine@gmail.com >>>>>>       Queue: Finance-Bank-Smile >>>>>>     Subject: still functional? >>>>>>   Broken in: (no value) >>>>>>    Severity: (no value) >>>>>>       Owner: Nobody >>>>>>  Requestors: lykoszine@gmail.com >>>>>>      Status: new >>>>>>  Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=46740 > >>>>>> >>>>>> >>>>>> Hi Guys, >>>>>> >>>>>> Running perl 5.10 on Ubuntu 8.10 here. >>>>>> cpan[3]> install WWW::Mechanize >>>>>> WWW::Mechanize is up to date (1.54). >>>>>> cpan[4]> install HTML::TableExtract >>>>>> HTML::TableExtract is up to date (2.10). >>>>>>  cpan[5]> install Finance::Bank::Smile >>>>>> Finance::Bank::Smile is up to date (0.05). >>>>>> >>>>>> And get the following: >>>>>> There is no form numbered 1 at >>>>>> /usr/local/share/perl/5.10.0/Finance/Bank/Smile.pm line 43 >>>>>> There is no form numbered 1 at >>>>>> /usr/local/share/perl/5.10.0/WWW/Mechanize.pm line 1824. >>>>>> >>>>>> Is this module still functional? >>>>>> >>>>>> S >>>>>> >>>>>>
>>>>> >>>>>
>>>> >>>>
>>> >>>
>> >>
> >
From: andy-rt.cpan.org [...] strugglers.net
On Mon Jun 08 12:07:44 2009, lykoszine@gmail.com wrote: Show quoted text
> Hi Guys, > > Running perl 5.10 on Ubuntu 8.10 here. > cpan[3]> install WWW::Mechanize > WWW::Mechanize is up to date (1.54). > cpan[4]> install HTML::TableExtract > HTML::TableExtract is up to date (2.10). > cpan[5]> install Finance::Bank::Smile > Finance::Bank::Smile is up to date (0.05). > > And get the following: > There is no form numbered 1 at > /usr/local/share/perl/5.10.0/Finance/Bank/Smile.pm line 43 > There is no form numbered 1 at > /usr/local/share/perl/5.10.0/WWW/Mechanize.pm line 1824.
Hi, Attached is a patch that makes this work for me as of today. It seems that all Smile did was 1) Change URL; 2) Remove the passcode box from the first page; 3) Add a new page that asks for two random digits from the passcode Cheers, Andy
Subject: pick_digits_from_passnum.patch
--- a/Smile.pm 2007-06-19 17:39:51.000000000 +0000 +++ b/Smile.pm 2011-10-26 03:08:20.464999714 +0000 @@ -27,7 +27,7 @@ sub check_balance { if ( !exists $opts{firstSchool} ) { croak 'Must provide first school' } - my $start_page = 'http://www.smile.co.uk/'; + my $start_page = 'https://banking.smile.co.uk/SmileWeb/start.do'; # hackery for https proxy support my $https_proxy = $ENV{https_proxy}; @@ -36,21 +36,42 @@ sub check_balance { my $mech = WWW::Mechanize->new( env_proxy => 1 ); $mech->get($start_page); - # click on "bank login" - $mech->follow_link( n => 1 ); + if ($DEBUG) { print $mech->content(); } - _follow_meta_refresh($mech); $mech->submit_form( form_number => 1, fields => { sortCode => $opts{sortCode}, accountNumber => $opts{accountNumber}, - passNumber => $opts{passNumber}, } ); # now we have to put in the secret info my $content = $mech->content(); + if ($DEBUG) { print $content; } + + my ($first_digit, $second_digit); + + if ($content =~ /enter the (first|second|third|fourth) and (first|second|third|fourth) digits of your security code and click/i) { + $first_digit = _get_pass_digit($1, $opts{passNumber}); + $second_digit = _get_pass_digit($2, $opts{passNumber}); + } else { + croak 'expected to be asked for two passnumber digits'; + } + + if ($DEBUG) { print "Supplying $first_digit and $second_digit\n"; } + + $mech->submit_form( + form_number => 1, + fields => { + firstPassCodeDigit => $first_digit, + secondPassCodeDigit => $second_digit, + } + ); + + $content = $mech->content(); + if ($DEBUG) { print $content; } + switch ($content) { case /memorabledate/ { my ( $day, $month, $year ) = @@ -136,6 +157,24 @@ sub check_balance { return @accounts; } +sub _get_pass_digit +{ + my ($wanted_digit_word, $passnum) = @_; + + my %word2digit = ( + first => 0, + second => 1, + third => 2, + fourth => 3, + ); + + if (not exists $word2digit{$wanted_digit_word}) { + croak "Unknown passnumber digit '$wanted_digit_word'"; + } + + return substr($passnum, $word2digit{$wanted_digit_word}, 1); +} + sub _follow_meta_refresh{ my $mech = shift; if ( $mech->response and my $refresh = $mech->response->header('Refresh') )