myuserid7 has asked for the wisdom of the Perl Monks concerning the following question:
Hello everyone,
I'm using Mechanize to download some files within multiple spidered pages. Unfortunately Javascript is used to write out the links to the files on each page, so I've been injecting the links manually and then following them:
my $html =~ s#</body#<a href="..">MY LINK</a></body#; $m->update_html($html); $m->follow_link(text=>"MY LINK"); $m->save_content(..);
there must be a better way to do this.. any ideas?
thanks.
Edited by planetscape - changed pre to code tags( keep:1 edit:15 reap:0 )
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Better solution with Mechanize?
by polettix (Vicar) on Jun 13, 2006 at 00:26 UTC | |
by myuserid7 (Scribe) on Jun 13, 2006 at 03:05 UTC | |
Re: Better solution with Mechanize?
by bart (Canon) on Jun 13, 2006 at 08:41 UTC | |
by myuserid7 (Scribe) on Jun 14, 2006 at 20:39 UTC |
Back to
Seekers of Perl Wisdom