I use this script to download videos on youtube and convert it to .mp3
file.
Link on
urls.txt
can bePlaylist
,Videos
the output will be an audio file of the videos.
it use multi threading for 5 thread. if you want change the number of thread, you can modify it in download-yt.py
if __name__ == "__main__":
if os.path.exists("urls.txt"):
n_chunk = 5 # Change this for number of thread you want.
- CLI for change the number of thread
- For now, it still download videos and then convert it to
.mp3
file simultaniously usingmoviepy
. This approach will drop the perfomance while convert the video to audio, I want improve to allow download first, and then convert all downloded video to audio file (.mp3
). - GUI using pyqt5 or TKinter
- Clone this repo
git clone https://github.com/zamzami16/Youtube-Download.git
- Create environment
cd Youtube-Download pip install -r requirements.txt
- Add youtube URL to
urls.txt
- Run Scripts
python download-yt.py