A Python application that converts YouTube playlists to Spotify playlists.
This application allows you to convert your favorite YouTube playlists into Spotify playlists. It utilizes the pytube to access unlisted or public playlist and Spotify Web API to fetch the YouTube playlist details and create a corresponding playlist on Spotify.
- Convert YouTube playlists to Spotify playlists
- Mapping of YouTube videos to Spotify tracks based on title and artist information
To set up the YouTube to Spotify Playlist Converter, follow the steps below:
- Python 3.7 or above installed on your machine
pip
package manager
$ git clone https://github.com/your-username/youtube-to-spotify-playlist-converter.git
$ cd youtube-to-spotify-playlist-converter
$ pip install -r requirements.txt
In order to use the application, you need to obtain API credentials for Spotify Web API.
- Go to the Spotify Developer Dashboard.
- Create a new application (if you haven't already).
- Note down the Client ID and Client Secret.
- Add a redirect uri
http://127.0.0.1:8080/
- Rename the
sample_config.py
file toconfig.py
. - Replace
"YOUR_CLIENT_ID"
and"YOUR_CLIENT_SECRET"
inconfig.py
with the respective values obtained from the API credentials.
$ python app.py
The application will start running. Follow the prompts to provide the YouTube playlist URL and authorize the Spotify account to create the playlist.
Contributions are welcome! If you find any bugs or have suggestions for improvements, please feel free to open a pull request.