in reply to WWW::Mechanize Problem

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

Replies are listed 'Best First'.
Re^2: WWW::Mechanize Problem
by dobson187 (Initiate) on Jul 13, 2011 at 18:08 UTC

    Thanks Anon. Looks like I have a lot of reading to do. I will see if this works. Also, I do see that there are a lot of utilities to run BLAST, but not PrimerBLAST, which is a bit different than regular BLAST.

      Solved it with WWW::Mechanize::Plugin::FollowMetaRedirect !