in reply to Download Webpage as how browser is showing a webpage

I have found this code in the WWW::Mechanize::Firefox documentation:

Fetch a page to a file with all images
use WWW::Mechanize::Firefox; my $mech = WWW::Mechanize::Firefox->new( tab => 'current', ); $mech->get('http://google.com'); $mech->save_content('google_com.html', 'google_com files');

Replies are listed 'Best First'.
Re^2: Download Webpage as how browser is showing a webpage
by Anonymous Monk on Oct 14, 2011 at 08:26 UTC

    Hi Gangabass

    I executed that program.I am not getting as same browser shows .In download fie images are missing

    Any idea?

      what are you getting when you run it (any error messages)? Did you have any problems installing WWW::Mechanize::Firefox? Do you have the Mozrepl plugin for firefox? You need to install that to communicate with firefox.

        Hi

        Sorry for late reply

        I got this error

        pattern match timed-out at C:/Perl/site/lib/MozRepl/Client.pm line 151

        I installed mozrepl as add on in firefox

        Senthil