Free2Code
 
Time: 2008-12-04, 08:06pm
Grab URL Source code
Subject: Grab URL Source code  ·  Posted: 2005-05-28, 07:01pm
Rank: ? (1)
Member #: 24184
I'm a begginner in perl. I want to read the source code of a url and to write it in a file. Anybody pls help me by providing a perl script for this.

-habeeb-

 
  Reply to this ·  Post link ·  Top
Subject: Re: Grab URL Source code  ·  Posted: 2005-07-11, 03:41pm
Rank: ? (29)
Member #: 16569
Code:
  1. #!/usr/bin/perl
  2. use LWP::Simple;
  3. $URL = "http://www.google.com/";
  4. $FILE = "source.txt";
  5. mirror( $URL, $FILE );


 
  Reply to this ·  Post link ·  Top

Pages: 1

Please login or register to post a reply.

icons