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 http://www.host.com/some/path/ to currenct directory
wget -r -l1 -nd -nc -A.pdf http://www.host.com/some/path/

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.

29498057, 29498058, 29498059, 29498060, 29498061, 29498062, 29498063, 29498064, 29498065, 29498066, 29498067, 29498068, 29498069, 29498070, 29498071, 29498072, 29498073, 29498074, 29498075, 29498076, 29498077, 29498078, 29498079, 29498080, 29498081, 29498082, 29498083, 29498084, 29498085, 29498086, 29498087, 29498088, 29498089, 29498090, 29498091, 29498092, 29498093, 29498094, 29498095, 29498096