Copy your liked YouTube Music to a playlist
Tested with Python>=3.8 and >=3.9
-
Run
git clone https://github.com/sayok88/likedmusicyoutube.git
-
Google Cloud Configuration
-
After created the project, on the project dashboard create your YouTube credentials
- Create your YouTube credentials (use option Desktop) (It is a link to Stack Overflow where it gets explained in detail)
-
Download the JSON file (
client_secret.json
or similiar) in the same folder as the code -
Enable YouTube Data API v3 on your Google Cloud project : https://console.developers.google.com/
-
Open
config.ini
and edit it for your needsCLIENT_SECRET_FILE
is the name of the JSON file you downloaded from step 2DEST_PLAYLIST
is the playlist the script will put your liked songs
-
Run
pip3 install -r requirements.txt
-
Lastly, run
python3 main.py
to make the transfer process (with ~200 songs limit)Or run
python3 export-txt.py
to just export a txt file with links of your liked YouTube Music, then checkplaylist.txt
with the results
The YouTube-API has a request-limit, so it workes for "only" ~200 Songs per day
The export process of the txt file is not impacted by the YouTube API request limit
Use venv or not
By default source playlist is Youtube Music Liked playlist
If you need to change that then replace source_play_list default value being LM