Using wget to download multiple files from a website

By On Sunday, April 10th, 2016 Categories : Artikel

The following command downloads all files pdf files from to currenct directory
wget -r -l1 -nd -nc -A.pdf

The options are:
-r Makes it recursive for subfolders
-l1 set maximum recursion, 1 levels of subfolders
-nd no directories — copies all matching files to current directory, discards directory information
-nc Do not download it file already exists
-A.pdf Accept only certain files (with pdf suffix in this case). Specify comma-separated lists of file name suffixes or patterns.

Advertisement (Dibawah ini adalah Iklan)