Last active
December 18, 2015 02:18
-
-
Save erichexter/5709695 to your computer and use it in GitHub Desktop.
Download the Microsoft Build 2013 videos - Just the Developer Videos
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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) | |
} | |
} |
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
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
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.