Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dpritchett/10005649 to your computer and use it in GitHub Desktop.
Save dpritchett/10005649 to your computer and use it in GitHub Desktop.
[Environment]::CurrentDirectory=(Get-Location -PSProvider FileSystem).ProviderPath
$rss = (new-object net.webclient)
$a = ([xml]$rss.downloadstring("http://channel9.msdn.com/Events/Build/2014/RSS/mp4high"))
$a.rss.channel.item | foreach{
$url = New-Object System.Uri($_.enclosure.url)
$file = $_.title.Replace(":", "-").Replace("?", "").Replace("/", "-") + "-" + $_.creator + ".mp4"
if (!(test-path $file))
{
$file
$wc = (New-Object System.Net.WebClient)
$wc.DownloadFile($url, $file)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment