Aşağıdaki adımları izleyerek uygulamayı yerel makinenizde çalıştırabilirsiniz
- uygulama klonlayın:
git clone https://github.com/melihAkn/spotifyPlaylistDownload.git- uygulama klasörüne gidin:
cd .\spotifyPlaylistDownload- Gerekli bağımlılıkları yüklemek için aşağıdaki komutu çalıştırın:
npm install- uygulama ana dizinine .env adında bir dosya oluşturun ve içine aşağıdaki adımlarla birlikte aldıgınız degerleri yazın client id ve client secret için https://developer.spotify.com/dashboard/ bu adresten bir uygulama oluşturun client_ID ve client_Secret kodlarını env dosyasına ekleyin ve generateToken dosyasını çalıstırıp accessTokeni olusturun
node generateToken.jshttps://console.cloud.google.com/apis/dashboard bu adresten youtube Data Api V3 aktif edin sonrasında credentials kısmından api keyinize erişin son olarak indirmek istediğiniz spotify playlist'in id sini env dosyasına ekleyin
CLIENT_ID = ''
CLIENT_SECRET = ''
SPOTIFY_ACCESSTOKEN = "Bearer "
YOUTUBE_APIKEY = ''
SPOTIFY_PLAYLIST_ID = ""- uygulamayı başlatmak için aşağıdaki komutu çalıştırın:
node app.jsindirmek istediğiniz muzikleri musics klasorunde bulabilirsiniz
watch the belowe steps and you can start the project
- clone this repo:
git clone https://github.com/melihAkn/spotifyPlaylistDownload.git- go to project directory:
cd .\spotifyPlaylistDownload- download the necessary packages
npm install- Create a file named .env in the application's root directory and write the obtained values into it following the steps below "Create an application at this address: https://developer.spotify.com/dashboard/ for the client ID and client secret. Add the client_ID and client_Secret codes to the env file, and then run the script to create an access token.
node generateToken.jsActivate the YouTube Data API V3 at this address: https://console.cloud.google.com/apis/dashboard, and access your API key in the credentials section. Finally, add the ID of the Spotify playlist you want to download to the env file."
CLIENT_ID = ''
CLIENT_SECRET = ''
SPOTIFY_ACCESSTOKEN = "Bearer "
YOUTUBE_APIKEY = ''
SPOTIFY_PLAYLIST_ID = ""- To start the application, run the following command:
node app.jsYou can find the music you want to download in the 'musics' folder.