Note: "yssh" stands for "Youtube Songs Separation Helper".
This project helps to automatically download songs from YouTube and generate their respective separate instrument tracks. This is achieved using the library pytube to download the audio files and Spleeter to automatically separate instrument tracks from the downloaded files.
-
Install Python: Make sure you have Python installed on your system. You can download it from python.org. Follow the installation instructions for your operating system. During installation, make sure to check the box to add Python to your PATH.
-
Set up dependencies: Run
pip install -r requirements.txt
to install all the necessary dependencies. Check the requirements file to see the dependencies. -
Prepare input URLs: Add all the desired YouTube URLs in a file called
inputs.txt
(in the same directory as the script). Enter one URL per line, as shown below: Example contents forinputs.txt
:
https://www.youtube.com/watch?v=kMxThvH-6Tw
https://www.youtube.com/watch?v=7ObT7LQd6ls
- Run the script: Run
python main.py
, wait for the process to complete, and enjoy the conversions. They will be placed in the/separated
directory.
โ Quick note: the process is finished when console displays the message "Finished all conversions of the videos from 'inputs.txt'.
"