Skip to content

mentix02/wtm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wtm - what the music

A song downloader for your command line. Enter keywords for songs and wtm will scrape the internet for you and download the appropriate song.

Installation

Install globally using pip. You might have to use sudo.

$ pip install wtm

For MacOS users, you might need to install ffmpeg and python-magic-bin if you don't already have it -

$ brew install ffmpeg
$ pip install python-magic-bin 

Usage

$ wtm --help
usage: wtm [-h] [-s SONG [SONG ...]] [-t] [-v]

Downloads songs from the internet.

optional arguments:
  -h, --help          show this help message and exit
  -s SONG [SONG ...]  song search query
  -t, --top           selects top search result
  -v, --version       show program's version number and exit

To enter keywords, either enter directly from the command line using the -s flag or you'll be prompted to enter the query.

If you trust YouTube with your query, you can pass the -t flag to get the first top result. Or else you'll be asked to select an id from a list of the titles that wtm scraped. Please see the demo for more information.

Demo

asciicast

About

a music downloader for the commandline

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages