Interaction Reaction RSS

Archive

Dec
25th
Fri
permalink
With only a sigh
I hear every single thing
you won’t say to me.
— Daily Haiku on Love by Tyler Knott Gregson
Nov
26th
Thu
permalink

PDC09 Session Videos Downloader (Cross-Platform)

Kudos to Microsoft for posting all the session videos from PDC09. Even better, they offer them in a number of formats, including the Mac/iPhone-friendly MP4 format. However, the ‘official’ downloader script they provide (by Mike Swanson) is a Windows batch file.

I wanted to easily download all the MP4 videos directly to my Mac so I can put them in iTunes and watch them on my iPhone. So I wrote a little Ruby script that will work on multiple platforms. I did brief testing on Windows and Mac, but this script should also work on *nix systems as well. You will need cURL installed. If you notice any problems with the script, please let me know.

Run it from a command prompt and pass the type of file you want to it, like so:

ruby PDCDownloader.rb MP4

You can also optionally pass a proxy to the script as well:

ruby PDCDownloader.rb MP4 proxy.example.com:8080

Download: PDCDownloader.rb