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

Uploaded Python 3

File details

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

File metadata

  • Download URL: tubemp3-0.2.5.1-py3-none-any.whl
  • Upload date:
  • Size: 11.1 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 585b1b399c9ec3550fea3659742505ab15a41a0944b0208dc57d870d0b9f8e34
MD5 18308d38a4db3dfc007bae583764ae4c
BLAKE2b-256 e086143acce601174efdf05381c247d43ee83a24dfe61db40daafe2918e8488d

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