Skip to content

This set of scripts tries to import your list of songs from vk.com to spotify

Notifications You must be signed in to change notification settings

Marindrew/m3u-to-spotify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

m3u-to-spotify

Part 1: Download .m3u playlist from vk.com

You can use MusicSig to download .m3u playlist from vk.com. Save it in the project folder.

Part 2: Install dependencies of the project

Then, install dependencies: pip install -r requirements.txt

Part 3: Convert m3u tracks to json

Just run, where PLAYLIST_FILENAME is the name of your vk playlist

python convert-m3u-2-json.py --file PLAYLIST_FILENAME.m3u

After this, you will have songs.json in the same folder.

Part 3: Import tracks to Spotify

Go to Spotify developer console and press Create an app.

Give it a name and description and take Client ID and Client Secret and generate environment variables:

SPOTIPY_REDIRECT_URI can be set to any website you trust in the developer console. I just use my website https://hiboo.co but you can use yours or any other website. Keep in mind that those website will in theory get the access token of your spotify account, so make sure to delete the app after you are done :). PLAYLIST_ID can be found in the link to your spotify playlist. For example https://open.spotify.com/user/11165866010/playlist/6AJ6BZYORhywkrJ8nL9DtH has 6AJ6BZYORhywkrJ8nL9DtH at the end. Template:

SPOTIPY_CLIENT_ID='HERE_IS_YOUR_CLIENT_ID_FROM_NEW_SPOTIFY_APP' SPOTIPY_CLIENT_SECRET='HERE_IS_YOUR_CLIENT_SECRET_FROM_NEW_SPOTIFY_APP' SPOTIPY_REDIRECT_URI='https://hiboo.co' python import.py songs.json YOUR_SPOTIFY_EMAIL PLAYLIST_ID

or you can example with valid email and playlist id

SPOTIPY_CLIENT_ID='HERE_IS_YOUR_CLIENT_ID_FROM_NEW_SPOTIFY_APP' SPOTIPY_CLIENT_SECRET='HERE_IS_YOUR_CLIENT_SECRET_FROM_NEW_SPOTIFY_APP' SPOTIPY_REDIRECT_URI='https://hiboo.co' python import.py songs.json [email protected] 6AJ6BZYORhywkrJ8nL9DtH

This will open the browser window. Just copy the url and paste it in the terminal. This will start the process of copying

Enjoy!

About

This set of scripts tries to import your list of songs from vk.com to spotify

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages