Skip to content

Instantly share code, notes, and snippets.

@stefanschmidt
Last active August 29, 2015 14:22
Show Gist options
  • Save stefanschmidt/7b6a2b9a1d97c4f4e860 to your computer and use it in GitHub Desktop.
Save stefanschmidt/7b6a2b9a1d97c4f4e860 to your computer and use it in GitHub Desktop.
Download all PDF documents from a web page
# depends on wget and GNU Parallel (available via Homebrew)
wget -e robots=off -nd -r --spider -l1 -A pdf http://foo.net/bar 2>&1 | grep -Eio http.+pdf | parallel -L 1 wget -nc --no-verbose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment