Welcome to MSDN Blogs Sign in | Join | Help

How to download Microsoft Webcasts - Part 1 (long Post)

How do you download a Microsof Webcast? This question comes up alot from our attendes. I found this article by Ronny Ong in the MSDN Communities newsgroup microsoft.public.msdn.general and Ronny Ong has a solution that's worth trying if you're technical. Before contacting Ronny try this out first.

Ronny - Thanks for taking the time to figure this out and making it available to the public.

Regards,

George, MSDN Webcasts

====================================================================================================================

How do download Microsoft Webcasts (long Post) - By Ronny Ong

Link to article by Ronny Ong

A few months ago, I mentioned being able to download MSDN webcasts (ones
which do not already provide a download link). Since then, I have been
getting more emails than I can answer directly, so I am posting this script
and instructions. I have already shared this with people who have gotten it
to work, and the only problem they ever run into is getting the script
copied and pasted without long lines being wrapped. I shortened all the
lines to 70 characters or less, which should get past most newsgroup
readers. The only exception is the line containing the EVENTPAGE constant.
You will need to edit that line to be able to use this script anyway, so
follow the instructions in the comments.

Please understand that I am only posting this script to reduce the amount of
email I get, so obviously I would appreciate it if you think twice before
emailing me about it. There are a lot of detailed instructions in the script
because you need to read them, not because I enjoy typing. Thanks for your
co-operation.

If it's 2006 and you're reading this message from Google's archives and the
script doesn't work anymore, it's either because a bunch of idiots abused
it, forcing Microsoft to change the site format and block this procedure, or
because Microsoft changes their site format periodically anyway. Sorry.

Copy and paste the lines below into Notepad, and save with a vbs file
extension. You may need to disable or reconfigure your anti-virus software
to allow you to use vbs files.

' VBScript to download Microsoft LiveMeeting-based webcasts from:
' http://www.microsoft.com/seminar/events/webcasts/ondemand.mspx

' BY USING THIS SCRIPT, YOU ACKNOWLEDGE THAT YOU ACCEPT MICROSOFT'S
' LICENSE AGREEMENT ON THE LIVEMEETING WEB SITE. IF YOU HAVE NOT READ
' THE LICENSE AGREEMENT OR DO NOT ACCEPT IT, DO NOT USE THIS SCRIPT.
' YOU ARE SOLELY RESPONSIBLE FOR YOUR USE OF THIS SCRIPT. PLEASE
' DO NOT WASTE BANDWIDTH BY DOWNLOADING ENTIRE WEBCASTS UNLESS YOU
' REALLY INTEND TO WATCH THEM!

' IMPORTANT: Different organizations within Microsoft use different
' webcast formats. This script is designed for the pre-recorded
' LiveMeeting webcasts available to the public. It does NOT handle:
' - Live Webcasts (wait until they get posted for on-demand viewing)
' - Private LiveMeeting (used by MS Partner Readiness training; URL
'   sent in registration email -- needs modified version of script)
' - Seminar Online (used by some but not all MSDN/TechNet webcasts;
'   URL contains manifest.xml -- recent releases give download links)
' - PSS Support Webcasts (URL contains support.microsoft.com)
' - Interwise (used by product teams before MS acquired Placeware;
'   URL contains file extension of vcm -- can be downloaded with
'   right-click Save As)
' - WebEx (used by sales & technical sales support before MS acquired
'   Placeware; URL contains file extension of wrf)
' - Other (outsourced to hosting services, used for special events
'   such as new product launches -- download procedure varies)

' System Requirements:

' 1. Internet Explorer 6 (tested only with Service Pack 1)
' 2. Windows Media Player 7 or higher (tested only with 9)
' 3. NetTransport (freeware from xi-soft.com, tested only with 1.8x)

' Instructions:

' 1. Make sure cookies are enabled in IE. LiveMeeting requires this.
' 2. Change the EVENTPAGE constant below to the URL of the desired
'    webcast's launch page (see example below).
' 3. Set the YOURNAME, COMPANY, and EMAIL constants below. Microsoft
'    provides valuable content for free, so please give valid
'    information. See the Privacy Policy on the Microsoft web site.
' 4. For best results, close all apps (especially IE windows and
'    anything which is actively accessing the network/Internet)
'    before running this script. It does not matter whether
'    NetTransport is running as long as it is installed.
' 5. Run this script to add the Download Job to NetTransport. It will
'    take a few seconds before you see anything happen. NetTransport
'    will pop up and give you a chance to override the defaults
'    before the download starts. The default filename will typically
'    be placeware.wmv so you should enter a more descriptive name in
'    the "Rename" textbox. Alternatively, you can wait until the
'    download has finished, then right-click on it and choose "Comment
'    as Filename" which will rename the file using the webcast
'    description (extracted by this script for NetTransport's Comment
'    field).

' Notes on NetTransport and Windows Media:

' 1. The actual downloading is done by NetTransport. If the Download
'    Job doesn't start immediately, you might have set NetTransport to
'    Manual Start. Right-click on the Job to Start it. Check other
'    NetTransport options such as Proxies if you still have problems.
' 2. Windows Media Servers will not stream video faster than it is
'    intended to be viewed. Even though you may have more bandwidth
'    available, it will take as long to download the video as it would
'    to to watch it. It is possible to serve Windows Media files via
'    http, in which case you may be able to download faster, but none
'    of the LiveMeeting webcasts are served that way.
' 3. If you cannot jump forward in the downloaded video, it was
'    authored without indexing. This is common for asf/wmv format. To
'    add indexing, you can use the Windows Media File Editor (part of
'    the Windows Media Encoder, a free download from Microsoft) or you
'    can simply right-click on the downloaded file in NetTransport and
'    choose "Make Index for ASF..."

Option Explicit

' Example URL is for "Exchange 2003 in Multi-Forest Environments"
' The Const line may have been wrapped after you copied and pasted
' from your newsgroup reader, but it should all be one line.
Const EVENTPAGE =
"http://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032252385&Culture=en-US"

Const YOURNAME = "Your Name"
Const COMPANY = "your Company Name"
Const EMAIL = "you@yourcompany.com"

Const VIEWPAGE = "http://www.placeware.com/cc/mseventsbmo"
Const MS_DELAY = 1000 ' higher than necessary, to be safe

Dim oIE
Dim oNetTransport
Dim sTitle
Dim oLinkTable
Dim oLink
Dim sHREF
Dim oForm
Dim sURL

Sub WaitForIE
    WScript.Sleep MS_DELAY
    Do While oIE.Busy
        WScript.Sleep MS_DELAY
    Loop
End Sub

Set oIE = CreateObject("InternetExplorer.Application")
WaitForIE
' oIE.Visible = True ' for debugging

oIE.Navigate EVENTPAGE
WaitForIE

sTitle = oIE.Document.All("lblEventTitle").InnerText
sTitle = Replace(sTitle, """", "'")
sTitle = Replace(sTitle, ":", "-")
sTitle = Replace(sTitle, "\", "-")
sTitle = Replace(sTitle, "?", "")
sTitle = Replace(sTitle, "*", "_")
sTitle = Replace(sTitle, "+", "&")
sTitle = Replace(sTitle, "/", "_")

Set oLinkTable = oIE.Document.All("lblEventDescription")
For Each oLink In oLinkTable.All.Tags("A")
    If Left(oLink.HREF, Len(VIEWPAGE)) = VIEWPAGE Then
        sHREF = oLink.HREF
        Exit For
    End If
Next

oIE.Navigate sHREF
WaitForIE

If InStr(oIE.LocationURL, "/support/maintenance") Then
    ' site is down for scheduled maintenance
    oIE.Visible = True ' display the error page
    WScript.Quit
End If

' Next page only appears if cookie doesn't exist
If oIE.Document.mainForm(1).Value = "Accept" Then
    oIE.Document.mainForm.Elements(1).Click
    WaitForIE
End If

oIE.Document.mainForm("cn").Value = YOURNAME
oIE.Document.mainForm.Submit
WaitForIE

oIE.Document.mainForm("email").Value = EMAIL
oIE.Document.mainForm("company").Value = COMPANY
oIE.Document.mainForm.Submit
WaitForIE

Set oForm = oIE.Document.Forms(0)
oForm.Action = "view.html?fmt=wmm"
oForm.Submit
WaitForIE

sURL = oIE.Document.All("Player7").URL
Set oNetTransport = CreateObject("NTIEHelper.NTIEAddUrl")
oNetTransport.AddLink EVENTPAGE, sURL, sTitle
Set oNetTransport = Nothing

oIE.Quit

====================================================================================================================


 
 
  

 

 

 

 

 

Published Thursday, July 08, 2004 9:46 AM by Georgeo Pulikkathara
Filed under:

Comments

# Downloading Microsoft Webcasts

Wednesday, July 07, 2004 7:10 PM by Deep Thoughts...

# re: How to download Microsoft Webcasts (long Post)

Thank you!
Thursday, July 08, 2004 12:21 PM by Scott Allen

# re: Why Do Microsoft Webcasts Have To Stream?

Thursday, July 08, 2004 2:14 AM by K. Scott Allen's Blog

# Exchange-faq.dk - Din portal til Microsoft Exchange Server information

Exchange-faq.dk - Din portal til Microsoft Exchange Server information
Thursday, July 08, 2004 6:45 AM by TrackBack

# re: How to download Microsoft Webcasts (long Post)

Nice one!!
Found a bug though. You need to replace the line
Set oLinkTable = oIE.Document.All("dlEventReferral")

with

Set oLinkTable = oIE.Document.All("lblEventDescription")

This should do it. I couldn't find any reference to dlEventReferral in the page source.
Friday, July 09, 2004 1:49 AM by Brian Madden

# re: How to download Microsoft Webcasts (long Post)

I updated Ronny's code above with Brian Madden's bug fix. I tried it and it works great. So now we've got a way to get downloads, but we have to do them one at a time. I agree with Ronny though. This is valuable content and it would be great for us know if we're getting to the right audience with our webcasts. Love to hear from our viewers on our content.

Regards,
George, MSDN Webcasts
Friday, July 09, 2004 1:30 PM by Georgeo Pulikkathara

# re: How to download Microsoft Webcasts (long Post)

Have you tryed the SDP program?
http://sdp.ppona.com/
Friday, July 09, 2004 10:32 PM by Simone B

# re: How to download Microsoft Webcasts (long Post)

No, but tell us more about it. In the situation with webcasts, can you initiate multiple downloads at once?
Saturday, July 10, 2004 2:04 AM by Georgeo Pulikkathara

# re: How to download Microsoft Webcasts (long Post)

have error on line:

--------
Set oNetTransport = CreateObject("NTIEHelper.NTIEAddUrl")

------------
ActiveX component cant create object.
winXP pro system, may be MS security fixes to blame?

Saturday, July 10, 2004 11:42 AM by tester

# re: How to download Microsoft Webcasts (long Post)

This is working for me. What error are you getting?

Saturday, July 10, 2004 11:51 AM by Georgeo Pulikkathara, MSDN Webcasts

# re: How to download Microsoft Webcasts (long Post)

There's a much easier way to do this...

Check out my blog here: http://dotnet.org.za/stuartg/archive/2004/07/07/2642.aspx
Sunday, July 11, 2004 10:15 PM by StuartGunter

# re: How to download Microsoft Webcasts - Part 1 (long Post)

Thank you very much
This is a big help to follow up with learning.
Perhaps you find time to look into a similar problem at http://msd2d.com/webSeminar/
Tuesday, July 13, 2004 5:21 PM by Donald

# Webcasts!!!!

Wednesday, September 08, 2004 5:51 AM by Server: Microsoft-IIS/6.0\r\n

# Webcasts!!!!

Wednesday, September 08, 2004 5:52 AM by Server: Microsoft-IIS/6.0\r\n

# re: How to download Microsoft Webcasts - Part 1 (long Post)

I think maybe you can use these code to make a program.

Webcast reader:It can exploer all webcast video, download and manage them, let us do not have to find every link in web page , just like a rss reader, to get data and link online, make download webcast video easy.

Thursday, December 07, 2006 6:03 AM by jerry
New Comments to this post are disabled
 
Page view tracker