This repository contains a Python script for downloading YouTube playlist videos using "pytube".
This repository contains a Python project for downloading all the videos from a YouTube playlist. The project now includes both a Command Line Interface (CLI) and a Graphical User Interface (GUI) built with PyQt5. The original script has been updated to use yt_dlp
(instead of the outdated pytube
) to handle the download and conversion process.
playlist_downloader.py
) or the GUI version (app.py
) for intuitive operation.
git clone https://github.com/DhananjayPorwal/youtube-playlist-downloader.git
cd youtube-playlist-downloader/youtube-playlist-downloader
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python playlist_downloader.py
Follow the prompt:
python app.py
Using the GUI:
Since I’m on Ubuntu, you can build an executable for your environment as follows:
pyinstaller --onefile app.py
Executable:
dist
folder.If a folder with the same name as the playlist already exists, the script will throw an error because it cannot recreate the folder. To resolve, delete or rename the existing folder before running the script.
The GUI may appear unresponsive during long downloads. This is due to heavy processing in the background thread. Please be patient while the process completes; the GUI logs and final success message indicate completion.
yt_dlp
for improved compatibility and performance compared to the legacy pytube
library.