Download YouTube Music songs/albums/playlists with tags from YouTube Music
Project description
Glomatico's YouTube Music Downloader
Download YouTube Music songs/albums/playlists with tags from YouTube Music in 128kbps/256kbps AAC and following the iTunes standard.
Setup
- Install Python 3.8 or higher
- Install gytmdl with pip
pip install gytmdl
- Add MP4Box to your PATH. You can get it from here: https://gpac.wp.imt.fr/downloads/
- (optional) Get your cookies.txt
- With cookies.txt, you can download age restricted tracks, private playlists and songs in 256kbps AAC using
--premium-quality
argument if you are a premium user. You can export your cookies by using the following Google Chrome extension on YouTube Music website with your account logged in: https://chrome.google.com/webstore/detail/gdocmgbfkjnnpapoeobnolbbkoibbcif. Make sure to export it ascookies.txt
to the same folder that you will run the script.
- With cookies.txt, you can download age restricted tracks, private playlists and songs in 256kbps AAC using
Usage
usage: gytmdl [-h] [-u [URLS_TXT]] [-t TEMP_PATH] [-f FINAL_PATH] [-c COOKIES_LOCATION] [-p] [-s] [-e] [-v]
[<url> ...]
Download YouTube Music songs/albums/playlists with tags from YouTube Music in 128kbps/256kbps AAC
positional arguments:
<url> YouTube Music song/album/playlist URL(s) (default: None)
options:
-h, --help show this help message and exit
-u [URLS_TXT], --urls-txt [URLS_TXT]
Read URLs from a text file (default: None)
-t TEMP_PATH, --temp-path TEMP_PATH
Temp path (default: temp)
-f FINAL_PATH, --final-path FINAL_PATH
Final path (default: YouTube Music)
-c COOKIES_LOCATION, --cookies-location COOKIES_LOCATION
Cookies location (default: cookies.txt)
-p, --premium-quality
Download 256kbps AAC instead of 128kbps AAC (default: False)
-s, --skip-cleanup Skip cleanup (default: False)
-e, --print-exceptions
Print exceptions (default: False)
-v, --version show program's version number and exit
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gytmdl-1.0.tar.gz
(4.9 kB
view hashes)
Built Distribution
gytmdl-1.0-py3-none-any.whl
(5.4 kB
view hashes)