This script download music from youtube and convert it to mp3 format. It also add metadata such as album cover, artist, album name, year, title and more to the mp3 file from spotify.
- Download full album: you can pass spotify album id and it will download all songs from the album.
- Download single song: you can pass spotify song_id and it will download the song.
- Download playlist: you can pass spotify playlist id url and it will download all songs from the playlist.
- FFMPEG
- Spotify for developers (CLient ID and Client Secret)
- Google apikey (youtube-data-api)
- Python 3.8
- Poetry
- Clone this repository
- Navigate to the directory of this repository
- and run the following command:
poetry shell
poetry install
- Copy
.env.example
contents to.env
file and enter your credentials
run poetry run mp3dl --help
for more info
run poetry run mp3l newmusicfriday
to download new music releases every friday from spotify
you can also use -c
to specify the country code
poetry run mp3dl -p playlist_id
to download all songs from a playlist. you will need a playlist_id from spotify playlist url.
poetry run mp3dl -a album_id
to download all songs from an album. you will need an album_id from spotify album url.
This script is provided "as is" without any warranty.
Use it at your own risk.