Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

@robertiagar robertiagar commented May 28, 2014

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

@TerribleDev

This comment has been minimized.

Copy link

@TerribleDev TerribleDev commented May 28, 2014

@rchaganti

This comment has been minimized.

Copy link

@rchaganti rchaganti commented May 28, 2014

@marcelodeaguiar

This comment has been minimized.

Copy link

@marcelodeaguiar marcelodeaguiar commented May 28, 2014

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

@rchaganti

This comment has been minimized.

Copy link

@rchaganti rchaganti commented May 28, 2014

@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