I know how to download 1 youtube video command, 1 youtube playlist command but I don't know how to download several youtube videos at once in one command. How can I do it?
Just add all the URLs after the call to youtube-dl, like this:
youtube-dl "https://www.youtube.com/watch?v=BaW_jenozKc" http://vimeo.com/56015672 "https://www.youtube.com/playlist?list=PLEBDE1E42B3A9BC37" "https://www.youtube.com/watch?v=IEge830cgHs"
Most shells also allow multi-line commands, like this:
youtube-dl \
"https://www.youtube.com/watch?v=BaW_jenozKc" \
http://vimeo.com/56015672 \
"https://www.youtube.com/playlist?list=PLEBDE1E42B3A9BC37" \
"https://www.youtube.com/watch?v=IEge830cgHs"
Don't forget to quote URLs that contain an ampersand (&
) or - on some shells - a question mark (?
). How you quote depends on your shell - on most shells, including the URL in '
or "
should be sufficient.