Spotify Freemium is a simple program to download any publicly available Spotify playlist from YouTube. To get rid of API usage for Spotify, Selenium is used. After fetching the playlist from Spotify, it finds an alternative download URL from YouTube and downloads the video as mp3 format by using the youtube-dl library. So the source code is really clean.
To download dependencies of the project, you can use the following command:
pip install -r requirements.txt
Please don't forget to install a Selenium driver for your preferred browser.
Use the following command to run the program:
python __init__.py <SPOTIFY_PLAYLIST_URL> <BROWSER_TYPE>
Browser types are Chrome, Firefox, Opera and Safari.
Example call:
python __init__.py https://open.spotify.com/playlist/7Jw2ZFk6NKVwXrW8MmOeGg chrome
If there is an update in your playlist, you can call the program again and it will only download the newly added songs.