[Linux-bruxelles] wget et téléchargement chirurgical ...

Aldo info at brlspeak.net
Sam 11 Juin 18:29:31 CEST 2022


Oui -A me paraît + approprié,
l'exemple avec -r -l était confus au regard de ce qu'ils voulaient
expliquer, ça m'a + rendu confus qu'autre chose.

Mais je vais relire ça à mon aise et faire des essais.

Merci à toi et merci Robert.

Aldo. 


On Sat, Jun 11, 2022 at 09:22:18AM +0200, Jean-Marc via Linux-bruxelles wrote:
> Dans les liens de Robert, tu trouves l'option -A ou --accept.
> Elle te permet de dire quel type de fichiers wget va télécharger.
> 
> Tu peux utiliser un suffixe comme .pdf par exemple pour limiter le
> téléchargement uniquement aux fichiers qui se terminent par .pdf.
> 
> -- 
> Jean-Marc
> 
> 
> Le texte extrait d'un des documents :
> 
> `-A acclist'
> `--accept acclist'
> `accept = acclist'
>     The argument to `--accept' option is a list of file suffixes or patterns
> that Wget will download during recursive retrieval. A suffix is the ending
> part of a file, and consists of "normal" letters, e.g. `gif' or `.jpg'. A
> matching pattern contains shell-like wildcards, e.g. `books*' or
> `zelazny*196[0-9]*'. So, specifying `wget -A gif,jpg' will make Wget
> download only the files ending with `gif' or `jpg', i.e. GIFs and JPEGs. On
> the other hand, `wget -A "zelazny*196[0-9]*"' will download only files
> beginning with `zelazny' and containing numbers from 1960 to 1969 anywhere
> within. Look up the manual of your shell for a description of how pattern
> matching works. Of course, any number of suffixes and patterns can be
> combined into a comma-separated list, and given as an argument to `-A'.
> 
> Le 11/06/22 à 00:00, Robert VISEUR via Linux-bruxelles a écrit :
> > Bonjour,
> > 
> > https://www.gnu.org/software/wget/manual/html_node/Recursive-Retrieval-Options.html
> > 
> > https://ftp.gnu.org/old-gnu/Manuals/wget-1.8.1/html_node/wget_12.html#SEC12
> > 
> > Cordialement,
> > Robert.




> _______________________________________________
> Linux-bruxelles :
> Èchanger, partager, s'informer par mails sur toute action, proposition accordée avec: http://www.bxlug.be/?Nos-statuts
> 
> ! 64 kb autorisés par mail, tout fichier inclus !
> 
> Linux-bruxelles at lists.bxlug.be
> https://chahut.domainepublic.net/cgi-bin/mailman/listinfo/linux-bruxelles
> 


-- 
  |  Verstuurd vanaf mijn GNU/Linux  |  Envoyé de mon GNU/Linux  | 
  |  -----------------  Sent from GNU/Linux  ------------------  | 


Plus d'informations sur la liste de diffusion Linux-bruxelles