Skip to main content

Library for getting music in high quality from YouTube

Project description

TubeMp3



PyPI - Downloads PyPI - License
GitHub Pipenv locked Python version

Library for getting music from YouTube


Instalation

sudo apt update && sudo apt upgrade -y
sudo apt install ffmpeg python3 python3-pip -y
pip3 install tubemp3 -U

Examples

$ getmusic 'no time for caution' 

result:

[download] Downloading playlist: no time for caution hq music
[youtube:search] query "no time for caution hq music": Downloading page 1
[youtube:search] playlist no time for caution hq music: Downloading 1 videos
[download] Downloading video 1 of 1
[youtube] rpWC9-VBjPM: Downloading webpage
[youtube] Downloading just video rpWC9-VBjPM because of --no-playlist
[youtube] rpWC9-VBjPM: Downloading player e06dea74
[download] Finished downloading playlist: no time for caution hq music
1
music: 
title:Hans Zimmer - No Time For Caution HQ (Interstellar)
duration:247
artist:Hans Zimmer
id:rpWC9-VBjPM
album:No Time for Caution
year:2015
WARNING: The url doesn't specify the protocol, trying with http
[youtube] rpWC9-VBjPM: Downloading webpage
[download] Destination: music/Hans_Zimmer_-_No_Time_For_Caution_HQ__Interstellar_.webm
[download] 100% of 3.97MiB in 01:32
[ffmpeg] Destination: music/Hans_Zimmer_-_No_Time_For_Caution_HQ__Interstellar_.mp3
Deleting original file music/Hans_Zimmer_-_No_Time_For_Caution_HQ__Interstellar_.webm (pass -k to keep)

find the file:

$ ls music/
Hans_Zimmer_-_No_Time_For_Caution_HQ__Interstellar_.mp3 

play the file:

$ play music/Hans_Zimmer_-_No_Time_For_Caution_HQ__Interstellar_.mp3
music/Hans_Zimmer_-_No_Time_For_Caution_HQ__Interstellar_.mp3:

 File Size: 7.94M     Bit Rate: 258k
  Encoding: MPEG audio    
  Channels: 2 @ 16-bit   
Samplerate: 48000Hz      Album: No Time for Caution
Replaygain: off         Artist: Hans Zimmer
  Duration: 00:04:06.55  Title: No Time for Caution

In:19.1% 00:00:47.10 [00:03:19.45] Out:2.26M [   ===|==-   ]        Clip:0    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

tubemp3-0.2.6.1-py3-none-any.whl (11.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page