Skip to content
/ youfy Public

Convert YouTube playlist to Spotify

License

Notifications You must be signed in to change notification settings

akubala/youfy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Youfy

Youfy is a simple Python project that will gather your YouTube playlist content and in a dummy way will try to convert it to Spotify playlist. This script is based on youtube-dl and Spotipy. Big thanks to Michał for his contribution!

Prequietes

  • Spotify account and API credentials

Usage

  1. Prepare Python Virtual Environment
virtualenv venv
source venv/bin/activate
pip install -r requirements.cfg
  1. Fulfil all config data that is stored in one YAML file called config_data.yaml.

Necessary, default config values:

  • scope: playlist-modify-public
  • trace: False

Values to be fulfilled:

  • username - Spotify user name
  • client_id - Private client ID obtained from Spotify API
  • client_secret - Private client secret number
  • redirect_uri - Your configured redirect URI (e.g. http://localhost/)
  • market - An ISO 3166-1 alpha-2 country code (e.g. PL)
  • playlist_name - Future Spotify playlist name
  • playlist_description - Future Spotify playlist description
  • youtube_playlist_id - YouTube playlist ID
  1. Run Youfy main script
python youfy.py

Be aware of notice below:

User authentication requires interaction with your
web browser. Once you enter your credentials and
give authorization, you will be redirected to
a url. Paste that url you were directed to to
complete the authorization.

Note

This project is no longer maintained.

About

Convert YouTube playlist to Spotify

Topics

Resources

License

Stars

Watchers

Forks

Languages