星期一, 2月 20, 2017

Tools to download videos from websites - youtube-dl

Tools to download videos from websites - youtube-dl



very powerful and easy to use

# Download YouTube playlist videos in separate directory indexed by video order in a playlist
$ youtube-dl -o '%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s' https://www.youtube.com/playlist?list=PLwiyx1dc3P2JR9N8gQaQN_BCvlSlap7re

#Download single YouTube video
$youtube-dl -f mp4 https://www.youtube.com/watch?v=Ezf_JiMilP4&list=FLJmUih3PSbm6HY73nBOjxBg&index=1 -o '%(title)s.%(ext)s'


說明文件﹕
https://github.com/rg3/youtube-dl/blob/master/README.md#readme

***
在一些舊版本的Linux上執行會有error, 懷疑是python相關的library版本和新版的youtube-dl不合造成,在新版本的Linux上執行都可以順利完成。

***





沒有留言: