Skip to content

sakura26/youtube-downloader-bash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

youtube-downloader-bash

A youtube video/playlist downloader in CLI
You can download entire playlist to mp4 files,
files will shows in folder like <playlist_sn>-<playlist_title>/<number>-<video_sn>-<video_title>.mp4
or you can just download a single video too.

Requirement

Require bash/python/curl
Develop under mac, but should works well on linux.

Usage

Video downloader usage:
$ bash getYoutube.sh <video_sn>
Playlist downloader usage:
$ bash getPlaylist.sh <playlist_sn>
To re-download all failed script again
$ bash updateFaillist.sh <path_of_playlist_folder>

Example

https://www.youtube.com/watch?v=ztCcJhJS8Q8&list=PLBSg1sI2PFmGdjI6x-iehbCzoXmjMCCOW&index=23
Video:
$ bash getYoutube.sh ztCcJhJS8Q8
Playlist
$ bash getPlaylist.sh PLBSg1sI2PFmGdjI6x-iehbCzoXmjMCCOW

Known Bug

  • zero size mp4 file
    sometime we will get 403 from googlevideo.com, still don't know why

About

a youtube video/playlist downloader in CLI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published