https://github.com/depau/applemusic-ytmusic-playlist-converter
Playlist converter between YouTube Music and Apple Music, extensible
https://github.com/depau/applemusic-ytmusic-playlist-converter
apple-music youtube-music ytmusic
Last synced: 6 months ago
JSON representation
Playlist converter between YouTube Music and Apple Music, extensible
- Host: GitHub
- URL: https://github.com/depau/applemusic-ytmusic-playlist-converter
- Owner: depau
- License: mit
- Created: 2023-11-13T17:12:14.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-25T19:29:40.000Z (over 1 year ago)
- Last Synced: 2025-04-12T05:38:32.507Z (8 months ago)
- Topics: apple-music, youtube-music, ytmusic
- Language: Python
- Homepage:
- Size: 19.5 KB
- Stars: 11
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Apple Music playlist scraper and YouTube Music playlist uploader
This project contains two scripts:
- One to scrape an Apple Music playlist and save the list of tracks to a JSON
file
- One to read the JSON file and upload the tracks to a YouTube Music playlist
## Usage
### Create virtualenv and install dependencies
```bash
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
```
### Scrape Apple Music playlist
```bash
./applemusic2json.py 'https://music.apple.com/xx/playlist/...' > playlist.json
```
### Upload to YouTube Music playlist
The playlist ID is the last part of the URL, after the last `/`, when viewing
the playlist in the browser.
```bash
# Authenticate with YouTube Music
ytmusicapi oauth --file oauth.json
# Upload playlist
./json2ytmusic.py 'PlaylistID' 'playlist.json'
```
## License
MIT License. See [LICENSE](LICENSE) file.