Download Entire YouTube Channel - all of a user's videos

yt-chanrip() { for i in $(curl -s http://gdata.youtube.com/feeds/api/users/"$1"/uploads | grep -Eo "watch\?v=[^[:space:]\"\'\\]{11}" | uniq); do youtube-dl --title --no-overwrites http://youtube.com/"$i"; done }
create the function then run 'yt-chanrip username' to download that user's entire channel. uses youtube-dl and the GData API. similar to http://www.commandlinefu.com/commands/view/3154/download-youtube-playlist

5
By: m1cawber
2011-01-29 05:52:25

1 Alternatives + Submit Alt

What Others Think

I'm new to all this and a little lost but would like to try this command. The user's name is GameShowNetwork so how would I run this command for that user? Thanks for this. :D
primetime34 · 785 weeks and 1 day ago
youtube-dl doesn't always work. I would use command #7718 instead to download the video.
RanyAlbeg · 785 weeks ago
I get the following error for every video ERROR: unable to download video (format may not be available) Thoughts?
primetime34 · 785 weeks ago
can't make it work... trying it on cygwin... do I need something besides curl, youtube-dl script, python? it does nothing....
bidomo · 726 weeks and 1 day ago
now that I look at it, youtube-dl could do this on its own the whole time... youtube-dl -citw ytuser:[USERNAME]
Kapow · 724 weeks and 3 days ago
now that I look at it, youtube-dl could do this on its own the whole time... youtube-dl -citw ytuser:[USERNAME]
Kapow · 724 weeks and 3 days ago
clive could use this feature.. its what i used to dl the ones i needed the other day. I may make apost later.
bbelt16ag · 659 weeks ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: