Apple Music to Spotify Playlist Converter
July 2023
This Python project fetches a list of songs from an Apple Music playlist and updates a Spotify playlist with the same set of songs. It employs Selenium for web scraping to fetch song details from Apple Music, and Spotipy, a lightweight Python library, to interact with Spotify's Web API and update the Spotify playlist.
The project structure consists of three key Python scripts. 'main.py' serves as the driver script for executing the main functions. 'apple.py' includes the function to scrape songs from an Apple Music playlist. 'spotify.py' contains functions to interact with Spotify's Web API to fetch song IDs and update a Spotify playlist.
An essential part of the project is the .env file, storing necessary environment variables. Although not included in the repository due to security reasons, a setup script, 'generator.py', is provided to assist the user in creating this file.
To run the program, the user needs to execute the 'main.py' script. The program will then fetch the song list from the Apple Music playlist and convert the song names and artist names into track IDs using the Spotify Web API. The provided Spotify playlist is updated with these track IDs.
Please note that due to song availability and naming differences between Apple Music and Spotify, some songs might not get transferred.