Go to the first, previous, next, last section, table of contents.
-
If you wish Wget to keep a mirror of a page (or FTP
subdirectories), use `--mirror' (`-m'), which is the shorthand
for `-r -N'. You can put Wget in the crontab file asking it to
recheck a site each Sunday:
crontab
0 0 * * 0 wget --mirror ftp://ftp.xemacs.org/pub/xemacs/ -o /home/me/weeklog
-
You may wish to do the same with someone's home page. But you do not
want to download all those images--you're only interested in HTML.
wget --mirror -A.html http://www.w3.org/
-
But what about mirroring the hosts networkologically close to you? It
seems so awfully slow because of all that DNS resolving. Just use
`-D' (See section Domain Acceptance).
wget -rN -Dsrce.hr http://www.srce.hr/
Now Wget will correctly find out that `regoc.srce.hr' is the same
as `www.srce.hr', but will not even take into consideration the
link to `www.mit.edu'.
-
You have a presentation and would like the dumb absolute links to be
converted to relative? Use `-k':
wget -k -r URL
-
You would like the output documents to go to standard output instead of
to files? OK, but Wget will automatically shut up (turn on
`--quiet') to prevent mixing of Wget output and the retrieved
documents.
wget -O - http://jagor.srce.hr/ http://www.srce.hr/
You can also combine the two options and make weird pipelines to
retrieve the documents from remote hotlists:
wget -O - http://cool.list.com/ | wget --force-html -i -
Go to the first, previous, next, last section, table of contents.