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.

Lethal Dreams, The Color of Water: A Black Man's Tribute to His White Mother, Zerk, Murder At Hell Gate Bridge (The Newberry Files Book 8), A Storm of Swords (A Song of Ice and Fire, #3), Spells of Old (Ancient Dreams Book 2), When Breath Becomes Air, Letter to My Daughter, Resimleriyle Çocuk, Chinese Cinderella: The True Story of an Unwanted Daughter, Twelve Years a Slave, I Am Malala: The Story of the Girl Who Stood Up for Education and Was Shot by the Taliban, A Long Way Home, 12 Years a Slave and Other Slave Narratives, Rock 'n' Roll Soldier: A Memoir, Survival in Auschwitz, Wish You Happy Forever: What China's Orphans Taught Me About Moving Mountains, The Color of Water: A Black Man's Tribute to His White Mother, Twelve Years a Slave, Moonglow