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 03 '22
When using YouTube-dl on an iFunny link it’ll in turn downloads an HTML page, that’s why I mentioned in step one that using it would download that. And I wouldn’t need an automation process if this weren’t the case.