Skip to content

Transform Spotify playlists into YouTube links with customizable download formats. πŸŽ΅πŸ”—πŸŽ₯

License

Notifications You must be signed in to change notification settings

lohitkolluri/TubiFY

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

TubiFy

TubiFY is a Python script that converts your favorite Spotify playlists into YouTube links providing easy access to both music and videos. It leverages the Spotify API to fetch track information and the YouTube Data API to search for corresponding music videos. You can customize the download format and choose between audio or video downloads.

🧐 Features

Here're some of the project's best features:

  • Easily convert Spotify playlists to YouTube links.
  • Choose between audio (MP3) and video (MP4) downloads.
  • Customize the download format for each track.
  • Progress bar for tracking playlist processing (requires tqdm).

πŸ› οΈ Installation Steps:

1. Clone this repository or download the script (tubify.py) to your local machine.

git clone https://github.com/lohitkolluri/TubiFY.git

2. Install the required Python packages using pip:

pip install -r requirements.txt

3. Create a .env file in the same directory as tubify.py and add the following credentials:

SPOTIPY_CLIENT_ID=your_spotify_client_id
SPOTIPY_CLIENT_SECRET=your_spotify_client_secret
YOUTUBE_API_KEY=your_youtube_api_key

Replace your_spotify_client_id, your_spotify_client_secret, and your_youtube_api_key with your respective API keys.

4. Run TubiFY by executing the following command in your terminal:

 python3 tubify.py

βš™οΈ Usage

  • Enter the number of playlists to process.

  • Choose the download option:

    • aa: Download all tracks as audio (MP3).
    • av: Download all tracks as video (MP4).
    • custom: Customize the download format for each track.
    • skip: Skip the download process.
  • For each playlist, provide the Spotify playlist URL and follow the on-screen prompts to complete the process.

  • TubiFY will create a file named youtube_links.txt that contains the YouTube links for the tracks.

πŸ’» Built with

Technologies used in the project:

  • Python
  • Spotipy
  • GoogleAPIClient
  • Pytube
  • DotENV

πŸ›‘οΈ License:

This project is licensed under the MIT License

About

Transform Spotify playlists into YouTube links with customizable download formats. πŸŽ΅πŸ”—πŸŽ₯

Resources

License

Stars

Watchers

Forks

Languages