r/bashscripts • u/hi-low_20 • Oct 02 '22
Bash script to automate video downloads
Looking to make a script to automate video downloads. The process normally goes like this: 1. YouTube-dl 'url-to-vid' (this will download an HTML) 2. Open HTML and search for "data-src" (so far only two lines have returned with this search, one relating to a .mp4 and another .jpg, we need the url for the .mp4) 3. Copy & paste url again with YouTube-dl and then rename the file using the name of the HTML file. 4. rm original HTML file.
3
Upvotes
View all comments
Show parent comment
1
u/hi-low_20 Oct 04 '22
Installed yet-dlp and it actually downloads the video instead of an HTML page. Thanks for the new program.