Ankit.11nov has asked for the wisdom of the Perl Monks concerning the following question:
use strict; use warnings; use WWW::Mechanize; my $mech=WWW::Mechanize->new(); my $URL="http://in.yahoo.com/"; $mech->get($URL); $mech->follow_link(text => 'Movies'); my $file=$mech->content(); open FILE_OUT , ">output.html" or die "$!"; print FILE_OUT $file; close FILE_OUT;
$mech->follow_link(text => 'Mail');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Accessing web page
by marto (Cardinal) on Jul 24, 2009 at 10:20 UTC | |
by Ankit.11nov (Acolyte) on Jul 24, 2009 at 11:10 UTC | |
by marto (Cardinal) on Jul 24, 2009 at 11:24 UTC | |
|
Re: Accessing web page
by Anonymous Monk on Jul 24, 2009 at 10:29 UTC | |
| |
|
Re: Accessing web page
by leocharre (Priest) on Jul 24, 2009 at 14:36 UTC | |
by Ankit.11nov (Acolyte) on Jul 25, 2009 at 11:38 UTC | |
by Anonymous Monk on Jul 25, 2009 at 12:55 UTC |