The lay out of the page that you are trying to parse has changed, and it would be ver hard to fix that script. I would suggest using WWW::Mechanize to do the parse.

Here is some code to get you started:

#!/usr/bin/perl use Crypt::SSLeay; use WWW::Mechanize; use URI::Escape; our $email = 'insert email address'; our $pass = 'insert password'; our $aftag = 'insert associates tag'; sub main { my $url = q[https://associates.amazon.com/]; my $mech = WWW::Mechanize->new() or die; my $res = $mech->get($url); print "res: ", $res, "\n"; print $mech->status(), "\n"; use Data::Dumper; $res_2 = $mech->submit_form( form_name => 'sign-in', fields => { email => $email, password => $pass, } ); my $orders_report = $mech->follow_link( url_regex => qr/earningsRe +port/i ); print $orders_report; } main();
-- gam3
A picture is worth a thousand words, but takes 200K.

In reply to Re: Publishing Amazon.com Associates Statistics Help by gam3
in thread Publishing Amazon.com Associates Statistics Help by osmaster

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.