Re: Save html page using perl

2009-05-22 Thread Jeff Pang
Gunnar Hjalmarsson: Jeff Pang wrote: We use "wget -p" to get the page and its full dependency. You could also use LWP but that's complicated to fetch the page and all its dependency. I thought that the portable WWW::Mechanize was the way to go rather than wget when there is a need to follow

Re: Save html page using perl

2009-05-22 Thread Gunnar Hjalmarsson
Jeff Pang wrote: We use "wget -p" to get the page and its full dependency. You could also use LWP but that's complicated to fetch the page and all its dependency. I thought that the portable WWW::Mechanize was the way to go rather than wget when there is a need to follow links. -- Gunnar Hj

RE: Save html page using perl

2009-05-22 Thread Sarsamkar, Paryushan
Thanks a lot :) Thanks, Paryushan -Original Message- From: John W. Krahn [mailto:jwkr...@shaw.ca] Sent: Friday, May 22, 2009 2:42 PM To: Perl Beginners Subject: Re: Save html page using perl Sarsamkar, Paryushan wrote: > Hi, Hello, > I have a URL, which displays different cont

Re: Save html page using perl

2009-05-22 Thread John W. Krahn
Sarsamkar, Paryushan wrote: Hi, Hello, I have a URL, which displays different content at different time. Now I want to save the page as html page to a particular location. How can I do that using perl? use LWP::Simple; getstore( 'http://www.somehost.com/somepage.html', '/home/Sarsamkar/so

Re: Save html page using perl

2009-05-22 Thread smu
On Fri, May 22, 2009 at 04:21:56PM +0800, Jeff Pang wrote: > s...@z107.de: >> hi, >> >> On Fri, May 22, 2009 at 03:52:59AM -0400, Sarsamkar, Paryushan wrote: >>> I have a URL, which displays different content at different time. Now I >>> want to save the page as html page to a particular location.

Re: Save html page using perl

2009-05-22 Thread Jeff Pang
s...@z107.de: hi, On Fri, May 22, 2009 at 03:52:59AM -0400, Sarsamkar, Paryushan wrote: I have a URL, which displays different content at different time. Now I want to save the page as html page to a particular location. How can I do that using perl? use LWP::UserAgent; my $ua = LWP::UserAge

Re: Save html page using perl

2009-05-22 Thread smu
hi, On Fri, May 22, 2009 at 03:52:59AM -0400, Sarsamkar, Paryushan wrote: > I have a URL, which displays different content at different time. Now I > want to save the page as html page to a particular location. How can I > do that using perl? use LWP::UserAgent; my $ua = LWP::UserAgent->new; my

Re: Save html page using perl

2009-05-22 Thread Jeff Pang
Sarsamkar, Paryushan: Hi, I have a URL, which displays different content at different time. Now I want to save the page as html page to a particular location. How can I do that using perl? I once did the same stuff, so I share the script to you. sub get_web { my $url = shift; m

Save html page using perl

2009-05-22 Thread Sarsamkar, Paryushan
Hi, I have a URL, which displays different content at different time. Now I want to save the page as html page to a particular location. How can I do that using perl? Thanks, Paryushan