TrackShift is a tool that lets you easily transfer your YouTube playlists to Spotify. It supports both YouTube Music playlists and regular YouTube playlists.
Türkçe README için aşağı kaydırın
- 🎵 Transfer YouTube and YouTube Music playlists to Spotify
- 🔒 Access to private YouTube playlists
- 📊 Simple and user-friendly interface
- 🏷️ Progress and status notifications
- 🖼️ Automatic transfer of YouTube playlist cover to Spotify
- 💫 Automatic creation of playlist description in Spotify
- 📝 Logging for comprehensive debugging
To use TrackShift:
- You need Python 3.8 or newer on your computer.
- Download or clone the project from GitHub.
- Install required packages:
pip install -r requirements.txt - Set up your Spotify and YouTube accounts (instructions below).
- Run the application:
python ytm2spt.py
- Log in to Spotify Developer Dashboard
- Create a new application (Click on "Create An App" in the top right corner)

- Enter application name and description, accept terms of use
- Go to the settings page of the created application
- Click "Edit Settings" and add the following "Redirect URI":
http://127.0.0.1:8888/callback
- Note the Client ID and Client Secret

- You can find your Spotify username from your Spotify account page

If you want to access private playlists (likes, etc.), you need to authenticate with your YouTube account. There are two methods that you can access from "Settings > YouTube Account Settings" menu in the application:
This method allows you to authenticate by copying YouTube cookies from your browser:
- Log in to YouTube in Chrome, Edge, or Firefox
- Press F12 to open developer tools
- Click on the "Application" tab
- Find the "Cookies" section on the left
- Select the "https://www.youtube.com" site
- Find and copy the following cookie values:
__Secure-3PSID__Secure-3PAPISID__Secure-3PSIDCC
- Paste these values into the corresponding fields in the application and click "Save"
This method provides a more secure authentication process:
- Click "Authenticate with YouTube OAuth" button in the application
- Log in with your Google account in the browser window that opens
- Approve the requested permissions
- The authentication process will be completed automatically
Both methods securely store the credentials needed to access your private playlists locally.
Set the following environment variables before running TrackShift:
SPOTIFY_CLIENT_ID=your_client_id
SPOTIFY_CLIENT_SECRET=your_client_secret
SPOTIFY_USER_ID=your_spotify_username
SPOTIFY_REDIRECT_URI=http://127.0.0.1:8888/callback
Windows users can fill in and run the env.bat file.
- YouTube Music playlists (
https://music.youtube.com/playlist?list=...) - Regular YouTube playlists (
https://youtube.com/playlist?list=...) - YouTube Liked videos list (when "Private playlists" option is checked)
- Playlists in your account using local YouTube Music API
If you encounter issues while running the application, check the generated log files:
- YouTube API:
youtube.log - Spotify API:
spotify.log - General application:
trackshift.log
- Fork this repo
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is derived from abhishekmj303/ytm2spt and includes various improvements and bug fixes. Thanks to abhishekmj303 for the original work.
This project is licensed under the GNU General Public License v3.0 (GPL-3.0). See the LICENSE.md file for more information.
Mehmet Efe AYTAŞ - GitHub
Project Link: https://github.com/mehmetefeaytas/trackshift
TrackShift, YouTube çalma listelerinizi Spotify'a kolayca aktarmanızı sağlayan bir araçtır. Hem YouTube Music çalma listelerini hem de normal YouTube çalma listelerini destekler.
- 🎵 YouTube ve YouTube Music çalma listelerini Spotify'a aktarın
- 🔒 Özel YouTube çalma listelerine erişim desteği
- 📊 Basit ve kullanıcı dostu arayüz
- 🏷️ İlerleme ve durum bilgilendirmeleri
- 🖼️ YouTube çalma listesi kapağı Spotify'a otomatik aktarım
- 💫 Spotify'da çalma listesi açıklaması otomatik oluşturma
- 📝 Kapsamlı hata ayıklama için günlük kaydı
TrackShift'i kullanmak için:
- Bilgisayarınızda Python 3.8 veya daha yeni bir sürüm olmalıdır.
- GitHub'dan projeyi indirin veya klonlayın.
- Gerekli paketleri yükleyin:
pip install -r requirements.txt - Spotify ve YouTube hesaplarınızı ayarlayın (aşağıdaki talimatlar).
- Uygulamayı çalıştırın:
python ytm2spt.py
- Spotify Developer Dashboard'a giriş yapın
- Yeni bir uygulama oluşturun (Sağ üst köşedeki "Create An App" butonuna tıklayın)

- Uygulama adını ve açıklamasını girin, kullanım şartlarını kabul edin
- Oluşturulan uygulamanın ayarlar sayfasına gidin
- "Edit Settings" tıklayın ve şu "Redirect URI" adresini ekleyin:
http://127.0.0.1:8888/callback
- İstemci Kimliği (Client ID) ve İstemci Sırrını (Client Secret) not edin

- Spotify kullanıcı adınızı Spotify hesap sayfanızdan bulabilirsiniz

Özel çalma listelerine (beğendiklerim vb.) erişmek istiyorsanız, YouTube hesabınızla kimlik doğrulaması yapmanız gerekir. Uygulamada "Ayarlar > YouTube Hesap Ayarları" menüsünden erişebileceğiniz iki yöntem bulunmaktadır:
Bu yöntem, tarayıcınızdan YouTube çerezlerini kopyalayarak kimlik doğrulaması yapmanızı sağlar:
- Chrome, Edge veya Firefox'ta YouTube'a giriş yapın
- F12 tuşuna basarak geliştirici araçlarını açın
- "Uygulama" veya "Application" sekmesine tıklayın
- Sol tarafta "Çerezler" veya "Cookies" bölümünü bulun
- "https://www.youtube.com" sitesini seçin
- Aşağıdaki çerez değerlerini bulun ve kopyalayın:
__Secure-3PSID__Secure-3PAPISID__Secure-3PSIDCC
- Bu değerleri uygulamadaki ilgili alanlara yapıştırın ve "Kaydet" düğmesine tıklayın
Bu yöntem, daha güvenli bir kimlik doğrulama süreci sağlar:
- Uygulamada "YouTube OAuth ile Kimlik Doğrula" düğmesine tıklayın
- Açılan tarayıcı penceresinde Google hesabınızla giriş yapın
- İstenen izinleri onaylayın
- Kimlik doğrulama işlemi otomatik olarak tamamlanacaktır
Her iki yöntem de özel çalma listelerinize erişim için gerekli olan kimlik bilgilerini güvenli bir şekilde yerel olarak saklar.
TrackShift çalıştırılmadan önce aşağıdaki çevresel değişkenleri ayarlayın:
SPOTIFY_CLIENT_ID=your_client_id
SPOTIFY_CLIENT_SECRET=your_client_secret
SPOTIFY_USER_ID=your_spotify_username
SPOTIFY_REDIRECT_URI=http://127.0.0.1:8888/callback
Windows kullanıcıları için env.bat dosyasını doldurup çalıştırabilirsiniz.
- YouTube Music çalma listeleri (
https://music.youtube.com/playlist?list=...) - Normal YouTube çalma listeleri (
https://youtube.com/playlist?list=...) - YouTube Beğendiklerim listesi (Özel çalma listeleri seçeneği işaretlendiğinde)
- Yerel YouTube Music API kullanarak hesabınızdaki çalma listeleri
Uygulama çalışırken sorunlarla karşılaşırsanız, oluşturulan günlük dosyalarını kontrol edin:
- YouTube API:
youtube.log - Spotify API:
spotify.log - Genel uygulama:
trackshift.log
- Bu repoyu forklayın
- Kendi branch'inizi oluşturun (
git checkout -b feature/amazing-feature) - Değişikliklerinizi commit edin (
git commit -m 'Add some amazing feature') - Branch'inize push edin (
git push origin feature/amazing-feature) - Pull Request açın
Bu proje, abhishekmj303/ytm2spt projesinden türetilmiştir ve üzerinde çeşitli iyileştirmeler ve hata düzeltmeleri yapılmıştır. Orijinal çalışma için abhishekmj303'e teşekkürler.
Bu proje GNU Genel Kamu Lisansı v3.0 (GPL-3.0) altında lisanslanmıştır. Daha fazla bilgi için LICENSE.md dosyasına bakın.
Mehmet Efe AYTAŞ - GitHub
Proje Bağlantısı: https://github.com/mehmetefeaytas/trackshift

