Wget Reference Card (Draft for discussion)
This page is a draft of what will be, eventually, in the Wget Reference Card.
The main idea is to list examples, options and tips that we think should be included. If you think something is missing, please add it!
The reference card is divided into 3 sections, and is essentially made of examples.
Basic Usage Examples
List of common cases and problems.
Download the main page of <site> to a file named index.html
wget http://<site>
Download the main page of <site> to a file named myindex.html
wget http://<site> -O myindex.html
Download the file <file>
wget http://<site>/<file>
Continue downloading the file <file>
wget -c http://<site>/<file>
Download the main page of <site> and all the files that are necessary to properly display it, making it suitable for local viewing
wget -p -k http://<site>
- Limit the download speed to 20KBs
wget --limit-rate=20k <url>
Download <file> from ftp server <ftpserver>, using as credentials username and password
Download using username <username> and password given as input
wget --user username --ask-password <url>
- Create a mirror of ftpserver.domain
wget --mirror -w 3 -p ftp://username:password@ftpserver.domain
Intermediate Usage Examples
Download a mirror of <url>, making the files suitable for off-line viewing, and retrying up to 5 times on failure; random wait of 0.5 to 4.5 seconds between files; ignore robot exclusions; log all output to output.log;
wget -w 3 --random-wait -t 5 -e robots=off -m -k -K <url> -o output.log