Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

abu omit
abu omit
3,106 Points

Download all videos and codes together

Hi, I have just started learning from team tree house. So far its been an amazing way to learn really quick. But I am having one problem that usually whenever I am coding I have to go back to the video on that topic. Its a tedious process to stream that particular video every time. It would be much better if I could download a whole course, including code and relevant files at once on my laptop. It would make coding and going to videos for reference much easier.

Thanks

4 Answers

J.T. Gralka
J.T. Gralka
20,126 Points

Hey Abu,

I don't think there is a way to download an entire course all at once, but I know you can download individual videos and projects to your computer. Check out the sidebar on the right hand side of the video description.

Hope that helps,

J.T.

James Barnett
James Barnett
39,199 Points

It's possible to download all of the videos using an app that have an import feeds feature.

Here are some directions on how to watch Treehouse videos on your Android using the PocketCasts app, you may be able to find app that will let you import a feed.

<?php 
// Place your own unique token here
// ie. itpc://teamtreehouse.com/library/websites/build-a-simple-website.rss?feed_token=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 
// $token = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx';
$token = '';

// Place any itunes feeds here
// This is an almost complete list... I left off some beginner lessons
// This might compile depending on server... You can split this array up

$urls = array(
'itpc://teamtreehouse.com/library/installing-a-ruby-development-environment.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/how-to-build-a-wordpress-plugin.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/implementing-designs-for-iphone.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/illustrator-foundations-3.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/usability-foundations.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/logo-design-basics.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/html-email-design.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/objectivec-basics.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/framework-basics.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/sass-basics.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/installing-a-ruby-development-environment.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/how-to-build-a-wordpress-plugin.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/implementing-designs-for-iphone.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/illustrator-foundations-3.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/usability-foundations.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/logo-design-basics.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/objectivec-basics.rss?'.$token,
'itpc://teamtreehouse.com/library/ios-foundations.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/build-a-simple-iphone-app-ios7-2.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/programming/build-a-simple-php-application.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/programming/building-social-features-in-ruby-on-rails.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/programming/build-a-simple-ruby-on-rails-application.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/programming/enhancing-a-simple-php-application.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/programming/using-php-with-mysql.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/programming/advanced-social-features-in-ruby-on-rails.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/programming/database-foundations.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/programming/ruby-foundations.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/programming/introduction-to-programming.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/programming/console-foundations.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/programming/git-basics.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/websites/build-a-responsive-website.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/websites/design-foundations.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/websites/build-an-interactive-website.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/websites/how-to-build-a-wordpress-theme.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/websites/html.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/websites/css-foundations-2.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/websites/website-basics.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/websites/aesthetic-foundations.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/websites/javascript-foundations.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/websites/photoshop-foundations.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/websites/accessibility.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/websites/technology-foundations.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/websites/illustrator-foundations.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/ios-development/build-a-simple-iphone-app.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/ios-development/build-a-blog-reader-iphone-app.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/ios-development/build-a-selfdestructing-message-iphone-app.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/ios-development/ios-foundations.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/business/how-to-start-a-business.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/business/how-to-build-your-company.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/business/how-to-market-your-business.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/business/careers-foundations.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/business/copyright-basics.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/business/how-to-run-a-web-design-business.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/business/how-to-build-your-business-through-blogging.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/android-development/build-a-simple-android-app.rss?feed_token='.$token,
'itpc://teamtreehouse.com/library/android-development/build-a-blog-reader-android-app.rss?feed_token='.$token
);

foreach ($urls as $url):
    $url = str_replace("itpc://","http://",$url);
    $xml = simplexml_load_file($url);

    echo '<h2>'.$xml->channel[0]->title.'</h2>';
    foreach ($xml->channel->item as $pixinfo):
        $title=$pixinfo->title;
        $link=$pixinfo->enclosure['url'];
        // In chrome the HTML5 download attribute will auto download, no right clicking necessary
        // Hold Alt plus Click will autodownload
        echo '<a href="'.$link.'" download>'. $title .'</a><br>';
    endforeach; 

endforeach; 



?>
James Barnett
James Barnett
39,199 Points

You absolutely, positively, have to hack the hell out it. Nice job :smile:

Jonathan Obino
Jonathan Obino
3,155 Points

can you provide a full list of all the courses available?

would be awesome!

yeh, i didn't know if this would get me kicked off treehouse or not, but i hated watching a 3 minute video then clicking to another page to watch another... I would like to watch a significant portion at once

James Barnett
James Barnett
39,199 Points

It's a neat idea, but I don't work for Treehouse. Maybe Faye Bridge can tell us if it violates their Terms of Service.

Vinay Kumar Reddy Yerram
Vinay Kumar Reddy Yerram
3,698 Points

excuse me for my stupid question. But,how to use this particular code snippet to download all videos. where should I paste this code??