Skip to content

SaitoGH/youtube-to-spotify-lua-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

youtube-to-spotify-lua-

An application used to convert your youtube-playlist to your spotify-playlist.

There are 2 Sections > Installation/Usage & Setting Up API KEYS

Section 1: Installation On Unix/Linux Systems

I could not find a simple way to install luarocks on Windows,
HOWEVER, You are recommended use WSL for luarocks installation instead, WSL For Windows

Requirements

  • Lua
  • Luarocks

1. Installing the required modules

  luarocks install cjson
  luarocks install lbase64
  luarocks install luasocket
  luarocks install luaossl

2. Running the actual code ( Finish Section 2 First )

  lua ./main.lua

Section 2: Setting Up API KEYS

1. Set up Spotify For Developers Account

Log In To Developers Using Your Spotify Account

2. Open Dashboard and Create App

  Name your app, description as any name you like.
  For Redirect URIs > Add "http://localhost/" & "http://localhost:8080/" without quotation.
  Which API/SDKs are you planning to use? > Click "WEB API"

3. Click your app, and press settings(has purple borders)


Get both the client id, and client secret and save them inside the .data file.
For your SPOTIFY_USER_ID, you may find in your account, it may be under username.

4. Get your Youtube API Key.

For this step, you may refer > Follow The Steps Once you receive youtube api key credential, insert into the .data file.

5. Finish, you may try running the code again In Section 1.

Q&A

Why even bother doing this using lua?
I did it for the purpose of experimenting what lua is capable of using my current knowledge.
It was not meant for ease of use.

About

An application used to convert your youtube-playlist to your spotify-playlist.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages