Error in the example
This commit is contained in:
parent
ee70d684ab
commit
37cf2ad7b7
@ -54,7 +54,7 @@ Où `<n>` représente le la profondeur de recherche dans les sous-dossiers. Par
|
||||
exemple, si l'on souhaite télécharger le contenu de ce blog sans télécharger les
|
||||
images de couverture des articles situés à l'adresse “<https://blog.epheme.re/images/covers/>”, on peut utiliser cette commande:
|
||||
```sh
|
||||
wget -rnpnH --cut-dirs=2 -A jpg https://blog.epheme.re/images/covers/
|
||||
wget -rnpnH --cut-dirs=2 -A jpg https://blog.epheme.re/
|
||||
```
|
||||
|
||||
Une méthode plus simple pour ce cas d'usage, si l'on n'a pas besoin de la
|
||||
|
@ -38,7 +38,7 @@ wget --recursive --no-parent --no-host-directories --cut-dirs=<n> --accept <exte
|
||||
|
||||
Where `<n>` denotes the number of subdirectories to omit from saving. For instance, to download the cover images from this blog at the address “<https://blog.epheme.re/images/covers/>”, you can put:
|
||||
```sh
|
||||
wget -rnpnH --cut-dirs=2 -A jpg https://blog.epheme.re/images/covers/
|
||||
wget -rnpnH --cut-dirs=2 -A jpg https://blog.epheme.re/
|
||||
```
|
||||
|
||||
Anyhow, a simpler method, if you don't need the directory structure (for instance in the above example), is to use the `--no-directories/-nd` option. However, the cut-dirs can be useful if you need some architecture information (e.g., if the files are sorted in directories by date or categories)
|
||||
|
Loading…
Reference in New Issue
Block a user