Skip to content

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.

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

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.

Resources

License

Stars

Watchers

Forks

Languages