Time: 2008-12-04, 08:06pm
Please
login or
register to post a reply.
|
|
| 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-
|
|
|
| Subject: Re: Grab URL Source code · Posted: 2005-07-11, 03:41pm |
|
|
|
Rank: ? (29)
Member #: 16569
|
Code:
#!/usr/bin/perl
- use LWP::Simple;
- $URL = "http://www.google.com/";
- $FILE = "source.txt";
- mirror( $URL, $FILE );
|
Pages: 1
Please
login or
register to post a reply.