How to download all videos on a youtube channel?

I always use youtube for getting information I need.

What I want is a script or a command that grabs and downloads all videos from a given channel.

NOTE: I tried youtube-dl but with no success.


Use youtube-dl command to download videos straight off of YouTube.

To install youtube-dl either

  • Use pip to install from the official youtube-dl channel's:

    sudo apt install pip
    pip install youtube-dl
    
  • Or, use the Debian package manager and an appropriate PPA (source):

    sudo add-apt-repository ppa:nilarimogard/webupd8 -y
    sudo apt update
    sudo apt install youtube-dl
    
  • If you're getting errors, try upgrading youtube-dl to the latest version (depending on the method of installation):

    pip install --upgrade youtube-dl
    sudo apt update && sudo apt upgrade youtube-dl
    

To download an entire channel

youtube-dl https://www.youtube.com/user/ChannelFoo

To download all videos on a playlist

youtube-dl https://www.youtube.com/user/ChannelFoo/playlist

To download a YouTube video as an MP3

youtube-dl -x --audio-format mp3 --audio-quality 320K <VIDEO_URL>

Use this for downloading all the videos from a youtube channel:

Open the terminal and type:

 youtube-dl -f best -citw -v <url-of-channel>

where <url-of-channel> is replaced by the URL of the channel.

Note: if you are downloading a lot of videos, you should change directories to the directory where you want to save the videos before you start downloading them.

Explanation:

-f, --format FORMAT
video format code. The special name "best" will pick the best quality.

-c, --continue                   
force resume of partially downloaded files .

-i, --ignore-errors              
continue on download errors .

-t, --title
use title in file name (default)

-w, --no-overwrites
do not overwrite files 

-v, --verbose
print various debugging information

Note: I usually prefer this:

youtube-dl -f 18 url/complete-playlist-url