Download WWDC2014 session pdf + mov

Fri, 13. Jun 2014

Categories: en development Tags: bash curl iOS Script WWDC

 1#!/bin/sh
 2cd "$(dirname "$0")"
 3
 4PREFIX=wwdc2014
 5bwlimit="1000K"
 6
 7for url in $(curl https://developer.apple.com/videos/wwdc/2014/ | egrep -hoe '[^"]+.pdf[^"]+')
 8do
 9  dst="$PREFIX/$(basename $url ?dl=1)"
10  echo "$dst"
11  curl --output "$dst" --time-cond "$dst" --remote-time --silent --create-dirs --location --limit-rate "$bwlimit" --url "$url" 2>/dev/null
12done
13
14for url in $(curl https://developer.apple.com/videos/wwdc/2014/ | egrep -hoe '[^"]+_sd[^"]+')
15do
16  dst="$PREFIX/$(basename $url ?dl=1)"
17  echo "$dst"
18  curl --output "$dst" --time-cond "$dst" --remote-time --silent --create-dirs --location --limit-rate "$bwlimit" --url "$url" 2>/dev/null
19done

I think downloading them this way is fair use. If you think otherwise, leave a comment below and I shall take appropriate action.

P.S.: See also the awesome wwdc transcript fulltext index.