I want to set up a script that uses wget
to download a video from a channel on youtube, they upload everyday so I want wget
to download the newly uploaded video without me having to go on youtube to get the video's URL. How could I achieve this? If wget
can't do it, is there any other command line software that can?
Ubuntu – How to download newly uploaded videos from a youtube channel
command linedownloadswgetyoutubeyoutube-dl
Related Question
- Ubuntu – Software to automatically download Youtube videos
- Ubuntu – How to force command line VLC to stream youtube videos of specific quality
- Ubuntu – ERROR: Unable to extract info section when downloading YouTube videos with youtube-dl
- Ubuntu – How to bulk download videos and rename them simultaneously using youtube-dl
- Ubuntu – Is it possible to only download a single frame from a youtube video
Best Answer
There's already a script for that:
youtube-dl
can download videos from youtube.com or other video platforms.Installation
The program is provided via the repositories and can be installed from there, however as youtube often change things and the program gets ongoing updates in this special case I recommend installing the latest version from github with these commands instead:
If you installed the program this way you're able to update it using:
Usage
Here are some video selection options that could be useful for you:
Examples
Download today's videos including resume of partially downloaded files:
for www.youtube.com/watch?list=PLFs4vir_WsTyXrrpFstD64Qj95vpy-yo1, while the full link also works
Download all videos from the last seven days using the URL list in
file
:Download all videos from the last month using the URL list in
file
, but don't touch any already downloaded videos located in the directory:See
man youtube-dl
for much more.