Skip to content

A simple python script that takes your liked videos on Youtube, and generates a Spotify playlist based on the song in your liked videos.

Notifications You must be signed in to change notification settings

elvisomondi/Creating-Spotify-Playlist-Containing-liked-YouTube-Videos

Repository files navigation

Create Spotify Playlist Containing Your Liked YouTube Videos

A simple script that takes your liked videos on Youtube, and generates a Spotify playlist based on the song in your liked videos.

Table of Contents

Technologies

LocalSetup

  1. Install All Dependencies
    pip3 install -r requirements.txt

  2. Collect You Spotify User ID and Oauth Token From Spotfiy and add it to secrets.py file

    • To Collect your User ID, Log into Spotify then go here: Account Overview and its your Username alt text
    • To Collect your Oauth Token, Visit this url here: Get Oauth and click the Get Token button alt text
  3. Enable Oauth For Youtube and download the client_secrets.json

  4. Run the File
    python3 create_playlist.py

    • you'll immediately see Please visit this URL to authorize this application: <some long url>
    • click on it and log into your Google Account to collect the authorization code

ToDo

  • Tests
  • Add Error Handling

Troubleshooting

  • Spotify Oauth token expires very quickly, If you come across a KeyError this could be caused by an expired token. So just refer back to step 3 in local setup, and generate a new token!

About

A simple python script that takes your liked videos on Youtube, and generates a Spotify playlist based on the song in your liked videos.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages