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.5-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file tubemp3-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: tubemp3-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.0.1 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for tubemp3-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ad61659d3ebdb76bd8358c41bf21dd20e39a26ebb6a486c1cb5e281d75d9a57e
MD5 ca1867eaaa4ab1c5a04bbecc82d5570b
BLAKE2b-256 d54f47fd108162ac146142f9214682c0151da6735ff9733d3cd3d8ec50dc23e3

See more details on using hashes here.

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