Skip to content

Instantly share code, notes, and snippets.

@erichexter
Last active December 18, 2015 02:18

Revisions

  1. erichexter revised this gist Jun 28, 2013. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion download.ps1
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,9 @@ $rss = (new-object net.webclient)
    #$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
    $a = ([xml]$rss.downloadstring("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/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"
  2. erichexter revised this gist Jun 6, 2013. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion download.ps1
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,9 @@
    $rss = (new-object net.webclient)
    #Set the username for windows auth proxy
    #$rss.proxy.credentials=[system.net.credentialcache]::defaultnetworkcredentials
    $a = ([xml]$rss.downloadstring("http://channel9.msdn.com/Events/TechEd/NorthAmerica/2013/RSS/mp4high"))
    #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
    $a = ([xml]$rss.downloadstring("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.rss.channel.item | foreach{
    $url = New-Object System.Uri($_.enclosure.url)
    $file = $_.creator + "-" + $_.title.Replace(":", "-").Replace("?", "").Replace("/", "-") + ".mp4"
  3. erichexter created this gist Jun 4, 2013.
    17 changes: 17 additions & 0 deletions download.ps1
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    [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
    $a = ([xml]$rss.downloadstring("http://channel9.msdn.com/Events/TechEd/NorthAmerica/2013/RSS/mp4high"))
    $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)
    }
    }