Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
May be nice to have TED Support for taks: http://www.ted.com/talks/dan_dennett_on_our_consciousness.html and play lists: http://www.ted.com/playlists/82/are_we_alone_in_the_universe.html
TED also provide subtitles and video meta-data.
How to download a video:
Visiting this talk page:
http://www.ted.com/talks/dan_dennett_on_our_consciousness.html
The download dialog gives me this URL to download the video in HD with subtitles:
http://video-subtitle.tedcdn.com/talk/podcast/2003/None/DanDennett_2003-480p-pt-br.mp4
I see in the page code this link inside a noscript area:
<a id="no-flash-video-download" href="http://download.ted.com/talks/DanDennett_2003.mp4">This links looks like to be ever the same format:
"http://download.ted.com/talks/"+talkDetails.mediaSlug+".mp4"
...and talkDetails.mediaSlug is found here:
<script type="text/javascript">var talkDetails = {"id":125,...,"mediaSlug":"JeffHawkins_2003",...}</script>the url http://download.ted.com/talks/DanDennett_2003.mp4 woks...
But the interesting is this:
wget http://download.ted.com/talks/DanDennett_2003-480p-pt-br.mp4
the same download URL, plus quality and lang parameters is redirected to the right file.
And Works!
Stop here! The wget line above works! ^^^
but... How to find the direct URL?
On this TED talk:
http://www.ted.com/talks/jeff_hawkins_on_how_brain_science_will_change_computing.html
We open the download dialog with ajax generated window from:
http://www.ted.com/download/links/slug/JeffHawkins_2003/type/talks/ext/mp4
The URL looks like to be ever
"http://www.ted.com/download/links/slug/"+talkDetails.mediaSlug+"/type/talks/ext/mp4"
This "ajax page" shows the download URL template:
url = 'http://download.ted.com/talks/JeffHawkins_2003{quality}{lang}.mp4?apikey=TEDDOWNLOAD'
Where {quality} may be "-light", "-480p", "" (empty means regular),
and {lang} may be "" or "-"+langCode, where langCode = "en", "it", "pt-br", ...
...and works too.