Archive | May 2014

TechEd North America Slides Download Script

So the download script only gets the videos. A quick adjustment and I was able to get the slide decks as well!!!

Here’s the code:

 

[Environment]::CurrentDirectory=(Get-Location -PSProvider FileSystem).ProviderPath
$rss = (new-object net.webclient)

$a = [xml]($rss.downloadstring(“http://channel9.msdn.com/Events/TechEd/NorthAmerica/2014/RSS/slides”))

$a.rss.channel.item | foreach{
$code = $_.comments.split(“/”) | select -last 1

$url = New-Object System.Uri($_.enclosure.url)

$file = $code + “-” + $_.creator + “-” + $_.title.Replace(“:”, “-“).Replace(“?”, “”).Replace(“/”, “-“).Replace(“<“, “”).Replace(“|”, “”).Replace(“‘”, “”).Replace(“`””, “”).Replace(“*”, “”) + “.pptx”
$file = $file.Replace(“â”, “”);
$file = $file.Replace(“¬”, “”);
$file = $file.Replace(“€”, “”);
$file = $file.Replace(“œ”, “”);
$file = $file.Replace(“‘”, “”);

if (!(test-path $file))
{
$file
$wc = (New-Object System.Net.WebClient)
$wc.DownloadFile($url, $file)
}
}

Advertisements

TechEd North America MP4 Download Script

Here is the download script for TechEd NA. Save it to the directory you want to download the files too. 

I copied this from the SPC14 script, but I modified the URL and the Replace code.

 

[Environment]::CurrentDirectory=(Get-Location -PSProvider FileSystem).ProviderPath
$rss = (new-object net.webclient)

$a = [xml]($rss.downloadstring(“http://channel9.msdn.com/Events/TechEd/NorthAmerica/2014/RSS/mp4high&#8221;))

$a.rss.channel.item | foreach{
$code = $_.comments.split(“/”) | select -last 1

$url = New-Object System.Uri($_.enclosure.url)

$file = $code + “-” + $_.creator + “-” + $_.title.Replace(“:”, “-“).Replace(“?”, “”).Replace(“/”, “-“).Replace(“<“, “”).Replace(“|”, “”).Replace(“‘”, “”).Replace(“`””, “”).Replace(“*”, “”) + “.mp4”
$file = $file.Replace(“â”, “”);
$file = $file.Replace(“¬”, “”);
$file = $file.Replace(“€”, “”);
$file = $file.Replace(“œ”, “”);
$file = $file.Replace(“‘”, “”);

if (!(test-path $file))
{
$file
$wc = (New-Object System.Net.WebClient)
$wc.DownloadFile($url, $file)
}
}

 

TechEd NA Sessions are on Channel 9 already

TechEd isn’t but a day old and Channel 9 already has the sessions posted!

http://channel9.msdn.com/Events/TechEd/NorthAmerica/2014