Skip to content

Instantly share code, notes, and snippets.

@shanselman
Created May 28, 2014 06:16
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save shanselman/32a469642ac12d078cb7 to your computer and use it in GitHub Desktop.
Save shanselman/32a469642ac12d078cb7 to your computer and use it in GitHub Desktop.
mkdir "~\Desktop\AzureFriday"
cd "~\Desktop\AzureFriday"
[Environment]::CurrentDirectory=(Get-Location -PSProvider FileSystem).ProviderPath
$a = ([xml](new-object net.webclient).downloadstring("http://channel9.msdn.com/Shows/Azure-Friday/feed/mp4high"))
$a.rss.channel.item | foreach{
$url = New-Object System.Uri($_.enclosure.url)
$file = $url.Segments[-1]
"Downloading: " + $file
if (!(test-path $file))
{
(New-Object System.Net.WebClient).DownloadFile($url, $file)
}
}
@robertiagar
Copy link

the fun thing about this is that you can change the feed and the folder names and download any podcast... nice one!

@TerribleDev
Copy link

@rchaganti
Copy link

@marcelodeaguiar
Copy link

Here is my version based on @rchaganti but with proxy support. https://gist.github.com/marcelodeaguiar/857f35114b15f4015ff9

@rchaganti
Copy link

@marc, Nice! Here is what I do before using Proxy Credentials. I check if the session really requires Proxy authentication first. If so, I set the WebClient Proxy properties as well as the PSDefaultParameterValues for Start-BitsTransfer cmdlet.

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