Download all playlists of YouTube channel/user keeping each playlist in separate directory

yt-dlp

  • A youtube-dl fork with additional features and fixes.
    Download videos from YouTube and other websites.
    More information: <https://github.com/yt-dlp/yt-dlp>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

yt-dlp -o "{{%(uploader)s/%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s}}" "{{https://www.youtube.com/user/TheLinuxFoundation/playlists}}"

click the source code to copy