youtube-mp3

Python cli and library for youtube-mp3.org.


Keywords
youtube-mp3, mp3, youtube, download
Licenses
MIT/X11
Install
pip install youtube-mp3==0.1.2

Documentation

IMPORTANT NOTICE:
The script relies entirely on youtube-mp3.org for converting and
downloading. The service was recently shut down as noted here:
http://www.dailymail.co.uk/sciencetech/article-4853772/YouTube-MP3-org-agrees-shut-sued.html. 
I am yet to find a back end as good as youtube-mp3.org to transition
to to make the script functional again. As of now, however, the script
is not functional and you'll get [Errno 111] Connection refused from
the service.

Request a converted to mp3 youtube video from youtube-mp3.org.

Depends on: python 2.7/3.4/3.5, requests, docopt


Usage: 

youtube-mp3.py [--autoend] [--chunk=<bytes>] <url> <path>

Examples:

  youtube-mp3.py --autoend https://www.youtube.com/watch?v=YE7VzlLtp-4 ./bunny.mp3

Options:

  -h, --help
  --autoend    auto append ".mp3" to the file if not present.
  --chunk=<bytes>  buffer size when writing to file [default: 2048].


NOTE:

There are limitations to using the service. You cannot download video longer than 20 minutes.
Also, the video could be marked to be not downloadable.