wait through this page and then scrape the content from the final page

Loop

do { $mech->follow_link(tag=>'meta'); } until ThisIsThePageIWant( $mech ); print $mech->content(format => 'text');

 

My problem is that I really don't understand these requests enough to determine how I should modify my code to make it send the right requests

Read Ovid's CGI Course

$ perl -MWWW::Mechanize -le " print WWW::Mechanize-> new->get( shift ) +->request ->as_string" http://example.com GET http://www.iana.org/domains/example/ Accept-Encoding: gzip User-Agent: WWW-Mechanize/1.68
Do you see the connection? GET is GET
GET /tools/primer-blast/primertool.cgi?ctg_time=1310519679&job_key=JSI +D_01_116688_130.14.24.201_9000 HTTP/1.1
The key issue is extracting the whole URL or just job_key and ctg_time from content (meta or wherever)

SEE ALSO
TAIR::Blast - A module to gather automated BLAST result from TAIR (http://www.arabidopsis.org/Blast/index.jsp)
Bio::Tools::Run::RemoteBlast - Object for remote execution of the NCBI Blast via HTTP
site:bioperl.org LWP blast

In reply to Re: WWW::Mechanize Problem by Anonymous Monk
in thread WWW::Mechanize Problem by dobson187

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.