Click here to Skip to main content
15,885,546 members
Articles / Programming Languages / C#
Article

Download all the Build Videos with RSS using Juice or PowerShell

Rate me:
Please Sign up or sign in to vote.
4.82/5 (4 votes)
24 Sep 2011CPOL3 min read 18.2K   4   3
A look at how to download all of the Build Videos using Juice or PowerShell
Image 1

Introduction

The conference sessions are starting to appear on the Channel 9 RSS feeds right now. If you are like me, then you probably want to download all of them and watch them later. Here is the method that I use to grab all the videos and thought that it would help others.

Note: You can use either Juice or PowerShell (which is located at the bottom of this post).

Let’s do this with Juice.

Navigate over to http://channel9.msdn.com/Events/BUILD/BUILD2011/ and select the option to Subscribe to this event:

Image 2

I wanted all Build2011 sessions in WMV with High quality (surprising… isn’t it).

That gives me this URL: http://channel9.msdn.com/Events/BUILD/BUILD2011/RSS/wmvhigh.

I can plus that into my browser and see the following: Image 3

But if you click on one of them, then it just takes you to the page:

Image 4

I couldn't care less about this page as I only want the videos and I may not have an internet connection later on.

Let’s Solve This

Step 1- Download Juice and run the installer.

Step 2 – Once it is installed, then hit the Add Button.

Image 5

Step 3 – Copy and Paste the URL of the feed you want to download.

Image 6

Step 4 – That’s it. You are ready to start downloading. Please note that the files that have a 0.0 MB have not been added to the feed yet. Give it a day or so and it should appear.

Image 7

If you really don’t want to install juice software, then you can use PowerShell.

Let’s Do This with PowerShell

The good news is that if you are using Windows 7 right now, then you already got PowerShell installed.

Go ahead and create a folder somewhere on your computer named: Build11. If you want to follow my example, then just put it on the root of C:.

Now open up your favorite text editor and copy/paste the following code:

cd "C:\build11" 
[Environment]::CurrentDirectory=(Get-Location -PSProvider FileSystem).ProviderPath 
$a = ([xml](new-object net.webclient).downloadstring
	("http://channel9.msdn.com/Events/BUILD/BUILD2011/RSS/wmvhigh")) 
$a.rss.channel.item | foreach{  
    $url = New-Object System.Uri($_.enclosure.url) 
    $file = $url.Segments[-1] 
    $file 
    if (!(test-path $file)) 
    { 
        (New-Object System.Net.WebClient).DownloadFile($url, $file) 
    } 
}

Note: The PowerShell script code is taken from a post by Scott Hanselman and variations of it exist all over the web.

Go ahead and save the file as downloadall.ps1.

You should have a folder named build11 and one file in it named downloadall.ps1.

Image 8

The only thing you will need to do now is go to a command prompt and type “powershell”.

Image 9

Navigate over to the directory you created earlier. I created one called build11.

Once you have navigated over to it, do a “dir” to see the contents. If you see your downloadall.ps1 script, then you are good to go.

Image 10

Enter the command ./downloadall.ps1.

If you are having trouble actually running that command, then refer to this post.

Image 11

Give it a few minutes (depending on your internet connection) and the files should start appearing in your build11 folder.

Image 12

Conclusion

I hope this guide cleared up some of the confusion that people had with downloading all of the videos. If you would like to read more about Build from my perspective, then check out the links below:

Thanks for reading!

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Telerik
United States United States
Michael Crump is a Silverlight MVP and MCPD that has been involved with computers in one way or another for as long as he can remember, but started professionally in 2002. After spending years working as a systems administrator/tech support analyst, Michael branched out and started developing internal utilities that automated repetitive tasks and freed up full-time employees. From there, he was offered a job working at McKesson corporation and has been working with some form of .NET and VB/C# since 2003.

He has worked at Fortune 500 companies where he gained experience in embedded systems design and software development to systems administration and database programming, and everything in between.

His primary focus right now is developing healthcare software solutions using Microsoft .NET technologies. He prefers building infrastructure components, reusable shared libraries and helping companies define, develop and automate process standards and guidelines.

You can read his blog at: MichaelCrump.net or follow him on Twitter at @mbcrump.

Comments and Discussions

 
GeneralMethods vs. Property Pin
Onyx23-Nov-16 7:14
Onyx23-Nov-16 7:14 
GeneralMy vote of 4 Pin
Charles Oppermann26-Sep-11 7:00
Charles Oppermann26-Sep-11 7:00 
Love it! The PowerShell script is great. FYI, please edit the code to remove the wrapping after .downloadstring
GeneralMy vote of 5 Pin
Kunal Chowdhury «IN»24-Sep-11 4:07
professionalKunal Chowdhury «IN»24-Sep-11 4:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.