Tagged: wget

wget cheat-sheet

Hello Internet, I made you something. There seems to be a lack of a basic wget┬ácheat-sheet. Today I got tired of referring back to the usual sources, which tend to include all possible flags, most of which I never use. Here’s a .pdf you can print and hang at your desk.

-e robots=off

-m
--mirror

-r
--recursive

-p
--page-requisites

-k
--convert-links

-l depth
--level=depth
 (5 is maximum)

-o logfile
--output-file=logfile

-i file
--input-file=file

--random-wait

-nd
 --no-directories

-nH
--no-host-directories

-E
 --html-extension
 (apends .html)

-U agent-string
--user-agent=agent-string

-A acclist
--accept acclist
 (comma-separated extensions)

-R rejlist
--reject rejlist
(comma-separated extensions)

-D domain-list
--domains=domain-list
(domains to follow)

--exclude-domains domain-list

-H
--span-hosts

-L
--relative
(follow only relative links)

-np
--no-parent