Today, I will introduce you to YouTube-dl, a tool used to download videos from youtube in the Ubuntu environment. Youtube-dl is a command line program written in Python. Its usage process is as follows: 1. installer sudoaptitudeinstallyoutube-dl2. use the command line option. /youtube-dl-h can be viewed. Commonly Used: *-o download video file save name *-u,-p
Today, I will introduce you to YouTube-dl, a tool used to download videos from youtube in the Ubuntu environment.
Youtube-dl is a command line program written in Python. Its usage process is as follows:
1. Installer
Sudo aptitude install youtube-dl
2. command line options
You can view the./youtube-dl-h file, which is commonly used as follows:
*-O the name of the downloaded video file
*-U,-p user name and password. Some videos may need to be downloaded by registered users on the YouTube website.
3. Use instances
Youtube-dl "http://www.youtube.com/watch? V = foobar"
Download and save it as foobar. flv
Youtube-dl-o vid. flv "http://www.youtube.com/watch? V = foobar"
This will download the video file named vid. flv.
Youtube-dl-u myusername-p mypassword "http://www.youtube.com/watch? V = foobar"
If you need to log on and download
4. Play a video
Mplayer, vlc, and so on.