Download a YouTube Channel’s Videos

By  on  
YouTube

YouTube is an endless source of entertainment, be it stuff you're proud to share you like or stuff you would rather others not know about (see: David's history of watching old WWE Royal Rumbles).  I watch a lot of YouTube in hotels and on flights when I don't have internet access, so I use youtube-dl to download YouTube videos; it's quick, easy, and makes online content available offline.

While youtube-dl allows you to download single videos in a variety of formats, I wanted to push youtube-dl harder to see if I could use the utility to download all of the Script & Style Show's content to build a RSS feed for iTunes.  I found it's very easy to download a YouTube channel's videos with one command:

# Download channel's videos in best format
youtube-dl -f best -citw -v https://www.youtube.com/channel/UCYVTUh34eDCAXrB5iIWH4yA

For my purposes I want to immediately convert the videos to MP3:

# Download channel's videos in MP3 format
youtube-dl -f mp3 -citw -v https://www.youtube.com/channel/UCYVTUh34eDCAXrB5iIWH4yA

youtube-dl is an amazing utility, especially when you consider all of the options available to the user.

Recent Features

  • By
    Responsive and Infinitely Scalable JS Animations

    Back in late 2012 it was not easy to find open source projects using requestAnimationFrame() - this is the hook that allows Javascript code to synchronize with a web browser's native paint loop. Animations using this method can run at 60 fps and deliver fantastic...

  • By
    Being a Dev Dad

    I get asked loads of questions every day but I'm always surprised that they're rarely questions about code or even tech -- many of the questions I get are more about non-dev stuff like what my office is like, what software I use, and oftentimes...

Incredible Demos

  • By
    Chris Coyier’s Favorite CodePen Demos II

    Hey everyone! Before we get started, I just want to say it's damn hard to pick this few favorites on CodePen. Not because, as a co-founder of CodePen, I feel like a dad picking which kid he likes best (RUDE). But because there is just so...

  • By
    CSS Columns

    One major gripe that we've always had about CSS is that creating layouts seems to be more difficult than it should be. We have, of course, adapted and mastered the techniques for creating layouts, but there's no shaking the feeling that there should be a...

Discussion

  1. Brian De Sousa

    Yes! “WWF” Royal Rumbles… The good ole days of wrestling!

Wrap your code in <pre class="{language}"></pre> tags, link to a GitHub gist, JSFiddle fiddle, or CodePen pen to embed!