m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/wget.md
blob: 1f8157d6ddfc821654c3e1ea6a939b93c79ff3a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Downloading with wget

## --page-requisites

Gets all files necessary to display given page (images, sounds, CSS, ...)

    wget -p <url>

## Recursive

Defaults to 5 levels deep.

    wget -r <url>
    wget -r -l <depth> <url>

Accept or reject links with patterns (useful to download files from a file
listing, where the files follow a naming pattern).

    wget -r -A <file1,file2> # can use *, ?, []
    wget -r -R <file1,file2> # can use *, ?, []
    wget -r --accept-regex <regex>
    wget -r --reject-regex <regex>