diff --git a/pages.nl/common/wget.md b/pages.nl/common/wget.md new file mode 100644 index 0000000000..35f6da9bf0 --- /dev/null +++ b/pages.nl/common/wget.md @@ -0,0 +1,37 @@ +# wget + +> Download bestanden vanaf het internet. +> Ondersteunt HTTP, HTTPS en FTP. +> Meer informatie: . + +- Download de inhoud van een URL naar een bestand (in dit geval genaamd "foo"): + +`wget {{https://example.com/foo}}` + +- Download de inhoud van een URL naar een bestand (in dit geval genaamd "bar"): + +`wget {{[-O|--output-document]}} {{bar}} {{https://example.com/foo}}` + +- Download één webpagina en alle bijbehorende bronnen met een interval van 3 seconden tussen verzoeken (scripts, stylesheets, afbeeldingen, etc.): + +`wget {{[-pkw|--page-requisites --convert-links --wait]}} 3 {{https://example.com/een_pagina.html}}` + +- Download alle vermelde bestanden binnen een map en zijn submappen (downloadt geen embedded pagina-elementen): + +`wget {{[-mnp|--mirror --no-parent]}} {{https://example.com/een_pad/}}` + +- Beperk de downloadsnelheid en het aantal verbindingspogingen: + +`wget --limit-rate {{300k}} {{[-t|--tries]}} {{100}} {{https://example.com/een_pad/}}` + +- Download een bestand van een HTTP-server met behulp van Basic Auth (werkt ook met FTP): + +`wget --user {{gebruikersnaam}} --password {{wachtwoord}} {{https://example.com}}` + +- Hervat een onvolledige download: + +`wget {{[-c|--continue]}} {{https://example.com}}` + +- Download alle URL's die zijn opgeslagen in een tekstbestand naar een specifieke map: + +`wget {{[-P|--directory-prefix]}} {{pad/naar/map}} {{[-i|--input-file]}} {{pad/naar/URLs.txt}}` diff --git a/pages/common/wget.md b/pages/common/wget.md index fc56d6d308..a14ec359ca 100644 --- a/pages/common/wget.md +++ b/pages/common/wget.md @@ -14,15 +14,15 @@ - Download a single web page and all its resources with 3-second intervals between requests (scripts, stylesheets, images, etc.): -`wget {{[-p|--page-requisites]}} {{[-k|--convert-links]}} {{[-w|--wait]}} 3 {{https://example.com/somepage.html}}` +`wget {{[-pkw|--page-requisites --convert-links --wait]}} 3 {{https://example.com/some_page.html}}` - Download all listed files within a directory and its sub-directories (does not download embedded page elements): -`wget {{[-m|--mirror]}} {{[-np|--no-parent]}} {{https://example.com/somepath/}}` +`wget {{[-mnp|--mirror --no-parent]}} {{https://example.com/some_path/}}` - Limit the download speed and the number of connection retries: -`wget --limit-rate {{300k}} {{[-t|--tries]}} {{100}} {{https://example.com/somepath/}}` +`wget --limit-rate {{300k}} {{[-t|--tries]}} {{100}} {{https://example.com/some_path/}}` - Download a file from an HTTP server using Basic Auth (also works for FTP): @@ -34,4 +34,4 @@ - Download all URLs stored in a text file to a specific directory: -`wget {{[-P|--directory-prefix]}} {{path/to/directory}} {{[-i|--input-file]}} {{URLs.txt}}` +`wget {{[-P|--directory-prefix]}} {{path/to/directory}} {{[-i|--input-file]}} {{path/to/URLs.txt}}`