Skip to content

Instantly share code, notes, and snippets.

@MarkVillacampa
Created June 9, 2017 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MarkVillacampa/ccf3b4f1eb583e3acbe0f98178c32d22 to your computer and use it in GitHub Desktop.
Save MarkVillacampa/ccf3b4f1eb583e3acbe0f98178c32d22 to your computer and use it in GitHub Desktop.
Download all 2017 video sessions in SD quality and PDF. Requires jq (https://stedolan.github.io)
curl -O --compressed https://devimages-cdn.apple.com/wwdc-services/h8a19f8f/049CCC2F-0D8A-4F7D-BAB9-2D8F5BAA7030/contents.json
jq '.contents[] | { title: .title, media: .media.downloadSD, id: .id } | if (.id | test(".*2017.*")) then . else empty end | if .media then .media else empty end' contents.json | xargs -n 1 wget -nc
jq '.contents[] | { title: .title, media: .media.slides, id: .id } | if (.id | test(".*2017.*")) then . else empty end | if .media then .media else empty end' contents.json | xargs -n 1 wget -nc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment