danielcaldas / uttop

Command line tool for downloading bands/artists's top tracks from youtube

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

uttop

Command line tool for downloading bands/artists top tracks from youtube

Requirements

youtube-dl

To use this tool, you must have youtube-dl installed.

Perl Modules

You must install some Perl modules that are not usually part of the Perl core modules.
  • utf8::all
  • HTML::TreeBuilder
  • HTML::TreeBuilder::XPath

curl

You must also have curl installed.

Short Description

uttop uses youtube-dl, and youtube web pages, to get the top tracks for a given artist or band, and wrap it all in a folder with the audio files and a little meta-information file about the downloaded tracks [jump to usage].

Long Description

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?).

youtube-dl

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..

Youtube

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.

Usage

./uttop.sh --help

uttop 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"

About

Command line tool for downloading bands/artists's top tracks from youtube

License:GNU General Public License v3.0


Languages

Language:Perl 66.9%Language:Shell 33.1%