This script looks at every track in a given Spotify playlist. If the track in not in the Youtube playlist, it inserts the video in it.
- A Spotify developer application (https://developer.spotify.com/my-applications/#!/applications)
- client_secrets.json containing Youtube Data API credentials
- The ID of the desired Spotify playlist
- The ID of the desired Youtube playlist
Insert your credentials in sync.py
spotify_client_ID = 'YOUR SPOTIFY CLIENT ID'
spotify_client_secret = 'YOUR SPOTIFY CLIENT SECRET'
spotify_username = 'YOUR SPOTIFY USERNAME'
spotify_playlist_id = 'YOUR SPOTIFY PLAYLIST ID'
youtube_playlist_id = 'YOUR YOUTUBE PLAYLIST ID'
python sync.py
Obviously, this script is in an early development stage. Things to do:
- Delete videos from playlist
- Command line arguments for playlists
- PEP8
- Python 3 support
For questions: marcusabu@gmail.com