A program already exists for this purpose; it is called youtube-dl, and is in Trisquel's repositories. It can also download videos from other websites. It is not as simple as a script that finds where Youtube stores the file for the video. You should look at the youtube-dl source code if you are interested in how you might write such a script: https://rg3.github.io/youtube-dl/

Reply via email to