Skip to content

Instantly share code, notes, and snippets.

@tonyarnold
Last active August 29, 2015 14:02
Show Gist options
  • Save tonyarnold/39ecda49be46ae0041e1 to your computer and use it in GitHub Desktop.
Save tonyarnold/39ecda49be46ae0041e1 to your computer and use it in GitHub Desktop.
Downloads all of the available WWDC2014 videos (assuming you have access to them), skipping any that are already downloaded and resuming any that aren't. Requires wget, which can be installed via homebrew. Original credit goes to Krzysztof: https://twitter.com/merowing_/status/474071685826883584. You'll need to be running wget 1.15 or later for …
echo "Downloading HD Videos…"
curl https://developer.apple.com/videos/wwdc/2014/ | grep -iIoh 'http.*._hd_.*dl=1">HD' | sed -e 's/\?dl=1">HD//g' | xargs -n1 wget -N -c
echo "Downloading SD Videos…"
curl https://developer.apple.com/videos/wwdc/2014/ | grep -iIoh 'http.*._sd_.*dl=1">SD' | sed -e 's/\?dl=1">SD//g' | xargs -n1 wget -N -c
echo "Downloading PDFs…"
curl https://developer.apple.com/videos/wwdc/2014/ | grep -iIohE 'http://[^/]+/videos/wwdc/2014/[^\.]+\.pdf\?dl=1">PDF' | sed -e 's/\?dl=1">PDF//g' | xargs -n1 wget -N -c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment