2014-02-24 16:29:46 +00:00
|
|
|
# wget
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
> Download files from the Web.
|
|
|
|
> Supports HTTP, HTTPS, and FTP.
|
2014-02-24 16:29:46 +00:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Download a URL to a file:
|
2014-02-24 16:29:46 +00:00
|
|
|
|
2014-03-02 20:38:04 +00:00
|
|
|
`wget -O filename "{{url}}"`
|
2014-02-24 16:29:46 +00:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Limit download speed:
|
2014-02-24 16:29:46 +00:00
|
|
|
|
2014-03-02 20:38:04 +00:00
|
|
|
`wget --limit-rate={{200k}} {{url}}`
|
2014-02-24 16:29:46 +00:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Continue an incomplete download:
|
2014-02-24 16:29:46 +00:00
|
|
|
|
2014-03-02 20:38:04 +00:00
|
|
|
`wget -c {{url}}`
|
2014-02-24 16:29:46 +00:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Download a full website:
|
2014-02-24 16:29:46 +00:00
|
|
|
|
2014-03-02 20:38:04 +00:00
|
|
|
`wget --mirror -p --convert-links -P {{target_folder}} {{url}}`
|
2014-02-24 16:29:46 +00:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- FTP download with username and password:
|
2014-02-24 16:29:46 +00:00
|
|
|
|
2014-03-02 20:38:04 +00:00
|
|
|
`wget --ftp-user={{username}} --ftp-password={{password}} {{url}}`
|