Command line tool for downloading bands/artists top tracks from youtube
To use this tool, you must have youtube-dl installed. You must install some Perl modules that are not usually part of the Perl core modules.- utf8::all
- HTML::TreeBuilder
- HTML::TreeBuilder::XPath
I always struggle to find ways to get songs from the web, to listen offline, torrents are cool but it takes me while to find out the best one, with the best tracks from the choosen artist or band.
So, I wanted a fast util that, just giving it the artist/band, the tool would simply give me a folder with those tracks (isn't this cool?).
I already had the perfect motor for download videos and extract audio installed on my system, that is youtube-dl, so know I just needed a way to instantly get me the URLs for top tracks...
Of course youtube-dl has already the feature for downloading lists, so this tool is an abstraction, so that one just needs to give a name, not URLs and other stuff..
Well, lets just say youtube take care of the top tracks...
As you probably have noticed before youtube gives you the top tracks for a given search related to an artist or band, so now putting this pieces together youtube-dl + youtube top tracks, I just had to program a little of HTML parsing to get this done.
./uttop.sh --helputtop help usage: uttop [options] band/artist or file.txt options: -f file give .txt file containing one band/artist per line
examples: ./uttop.sh -f bands.txt ./uttop.sh "The Strokes"