Skip to content

RootViper4/SpotifyGeneratePlaylist

 
 

Repository files navigation

SpotifyGeneratePlaylist

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

Video

Check out the youtube video for a step by step walk through Youtube Video

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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%