Skip to content

Latest commit

 

History

History
72 lines (46 loc) · 2.16 KB

README.md

File metadata and controls

72 lines (46 loc) · 2.16 KB

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