3 ms·
I have a 2-line shell script using only sed and curl (or equivalent) that obviates any need for youtube-dl, python, third party websites, etc. Unlike youtube-d
by textmode 8y ago
I have a 2-line shell script using only sed and curl (or equivalent) that obviates any need for youtube-dl, python, third party websites, etc. Unlike youtube-dl it will not download videos where the uploader is some commercial media outlet that wants to prohibit downloading.
- ravenstine 8y agoCan you post this somewhere? Maybe a Github Gist?
- textmode 8y agoAs requested, see https://news.ycombinator.com/user?id=textmode https://news.ycombinator.com/user?id=textmode Example usage: argv0 22 file Where argv0 is the name of the script. Where 22 is itag no. for HD mp4. 18 is itag no. for a lower quality mp4. Will save video as file.mp4 If get HTTP 302, then retry. If get HTTP 403, then retry or give up; video is probably commercial in nature and has restrictions.
- ravenstine 8y agoThat links to your user profile. Wrong link?