4 ms·
Is there a command line yt-dl alternative (for youtube to mp3 conversions) that doesn't require Python? Something utilizing basic Unix tools, C or Perl would b
by marttt 5y ago
Is there a command line yt-dl alternative (for youtube to mp3 conversions) that doesn't require Python?
Something utilizing basic Unix tools, C or Perl would be perfect. I did find a simple Perl script [1], apparently written in 2020, but it didn't work for me out of the box, possibly due to some simple regex issue.
1: https://calomel.org/youtube_wget.html https://calomel.org/youtube_wget.html
- sp332 5y agoHere's a perl one that is actively maintained. https://www.jwz.org/hacks/#youtubedown https://www.jwz.org/hacks/#youtubedown Edit: my browser cached the page so I didn't see the special version lol. Try a private window or https://web.archive.org/web/submit?url=https%3A%2F%2Fwww.jwz.org%2Fhacks%2Fyoutubedown https://web.archive.org/web/submit?url=https%3A%2F%2Fwww.jwz...
- skrebbel 5y agoI love clicking on jwz links from HN
- marttt 5y agolol, took me a moment to "get" this. Omitting the hash symbol got me to the actual script: https://www.jwz.org/hacks/youtubedown https://www.jwz.org/hacks/youtubedown Many thanks!
- sp332 5y agoThe hash should load the /hacks/ page and then scroll to the element with the "youtubedown" id. This works in every browser from like the last decade... or two.
- marttt 5y agoWhen I first clicked it, I was greeted with this: https://cdn.jwz.org/images/2016/hn.png#youtubedown https://cdn.jwz.org/images/2016/hn.png#youtubedown Edit: I can confirm that this jwz's script works. Very handy for me. Thanks again!
- lapinot 5y agoSeems weird to me to frown upon python and then being ok with perl.. but whatever floats your boat! Perhaps check out https://github.com/iawia002/annie https://github.com/iawia002/annie which is Go so you can get a static binary.
- marttt 5y agoThanks! I'm not frowning upon Python, I just have an ancient computer with a really minimal Linux system. For that reason I'm avoiding Python, but I definitely need Perl for a few other tasks. Also, yes, I happen to be one of those guys who actually likes Perl's syntax, general ideas, and the oddball humor of its community.