Skip to content

Instantly share code, notes, and snippets.

@erichexter
Last active December 18, 2015 02:18
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save erichexter/5709695 to your computer and use it in GitHub Desktop.
Save erichexter/5709695 to your computer and use it in GitHub Desktop.
Download the Microsoft Build 2013 videos - Just the Developer Videos
[Environment]::CurrentDirectory=(Get-Location -PSProvider FileSystem).ProviderPath
$rss = (new-object net.webclient)
#Set the username for windows auth proxy
#$rss.proxy.credentials=[system.net.credentialcache]::defaultnetworkcredentials
#http://channel9.msdn.com/Events/TechEd/NorthAmerica/2013/rss/mp4high/?sort=sequential&direction=desc&term=&r=Developer+Tools+%26+Application+Lifecycle+Management&r=Windows+Azure+Application+Development&y=Breakout&Media=true#fbid=FDnmapgI5Hf
#http://channel9.msdn.com/Events/TechEd/NorthAmerica/2013/RSS/mp4high
#http://channel9.msdn.com/Events/Build/2013/RSS/mp4high#theSessions
#http://channel9.msdn.com/Events/TechEd/NorthAmerica/2013/rss/mp4high/?sort=sequential&direction=desc&term=&r=Developer+Tools+%26+Application+Lifecycle+Management&r=Windows+Azure+Application+Development&y=Breakout&Media=true#fbid=FDnmapgI5Hf
$a = ([xml]$rss.downloadstring("http://channel9.msdn.com/Events/Build/2013/RSS/mp4high#theSessions"))
$a.rss.channel.item | foreach{
$url = New-Object System.Uri($_.enclosure.url)
$file = $_.creator + "-" + $_.title.Replace(":", "-").Replace("?", "").Replace("/", "-") + ".mp4"
if (!(test-path $file))
{
$file
$wc = (New-Object System.Net.WebClient)
#Set the username for windows auth proxy
#$wc.proxy.credentials=[system.net.credentialcache]::defaultnetworkcredentials
$wc.DownloadFile($url, $file)
}
}
@tdavisjr
Copy link

tdavisjr commented Jun 7, 2013

I have updated your script locally to strip other symbols. One video had a less than (<) symbol which is also invalid so the download broke in that case. Thanks for providing this though. Came in pretty darn handy.

@nzthiago
Copy link

nzthiago commented Jun 8, 2013

Thanks for this, works like a charm! In my fork I am prepending the session code to the file name so it's easy to sort the files per track once they're all downloaded

@erichexter
Copy link
Author

I updated the Gist for 2013 /Build conference videos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment