lwp-rget - Retrieve WWW documents recursively
lwp-rget [--verbose] [--depth=N] [--limit=N] [--prefix=URL] <URL> lwp-rget --version
This program will retrieve a document and store it in a local file. It will follow any links found in the document and store these documents as well, patching links so that they refer to these local copies. This process continues until there are no more unvisited links or the process is stopped by the one or more of the limits which can be controlled by the command line arguments.
This program is useful if you want to make a local copy of a collection of documents or want to do web reading off-line.
All documents are stored as plain files in the current directory. The file names chosen are derived from the last component of URL paths.
The options are:
Limit the recursive level. Embedded images are always loaded, even if they fall outside the --depth. This means that one can use --depth=0 in order to fetch a single document together with all inline graphics.
The default depth is 5.
Limit the number of documents to get. The default limit is 50.
Limit the links to follow. Only URLs that start the prefix string are followed.
The default prefix is set as the "directory" of the initial URL to follow. For instance 'http://www.sn.no/sn'
Sleep n seconds before retrieving each document. This options allows you to go slowly, not loading the server you visiting too much.
Make more noise while running.
Print program version number and quit.
Print the usage message and quit.
lwp-request, LWP
Gisle Aas <aas@sn.no>
To install LWP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm LWP
CPAN shell
perl -MCPAN -e shell install LWP
For more information on module installation, please visit the detailed CPAN module installation guide.