⚠️ Disclaimer: This project is discontinued.
A new version is being developed here.
YTPO is a program built using the yt-dlp library. This script allows you to download, archive, and back up your YouTube playlists efficiently. The program offers multiple methods for storing your playlist data: you can save the content in a MySQL Database, export it as csv or txt files, or generate user-friendly html reports.
In addition to these features, YouTube Playlist Organizer can download videos from a playlist and save them in either mp3 or mp4 format, providing flexibility depending on your needs. With YTPO, managing and preserving your favorite YouTube playlists easier than before.
Download the .zip from GitHub or type:
git clone https://github.com/Kordight/YTPOThen enter the project directory. In order to make it work, you need tqdm, yt-dlp . You can install them by typing in terminal/cmd:
pip install -r requirements.txtThis script requires FFmpeg to be installed and associated with the system environmental variables.
Then you need to edit config.ini.
-
min_similarity=determines the minimum similarity of titles to catch, default0.75, valid values: from0to1. -
download_video=enables or disables downloading videos from the playlist, default0, valid values:0or1. -
download_music=enables or disables downloading audio from the playlist, default0, valid values:0or1. -
backup_playlist=enables or disables saving all links and titles to a.txtfile, default0, valid values:0or1. -
download_wav=enables or disables saving audio from the playlist as.wavfiles, default0, valid values:0or1. -
use_csv_file=enables or disables saving reports from the playlist as.csvand.htmlfiles, default1, valid values:0or1. -
resume_playlist_download=enables or disables resuming download on lates finished video from playlist, default1, valid values:0or1. -
use_database=enables or disables saving report to the MySQL database, default0, valid values:0or1.
Tip: You can enable multiple ways to save your playlist simultaneously.
You can run the program by opening CMD or Terminal and typing this command:
python3 main.pyAlternatively, you can run this command:
python main.py --playlistURL "https://youtube.com/playlist?list=YOUR_PLAYLIST_URL"Without an argument, the program will ask for a playlist link. A valid link looks like this: https://www.youtube.com/playlist?list=PLuoflVrROeM3MLY-78dZTsWnkZWextssm. Then you have to wait for the program to finish its job. .txt, .csv, and .html reports can be found inside the Output/{Playlist_name} folder, audio files inside the Output/{Playlist_name}/Music folder, and .mp4 files inside the Output/{Playlist_name}/Videos folder. These folders are available in the program directory.
You can check example reports generated by this software here.
- You can download videos/audio from your favorite playlist.
- You can track similar positions in your playlist.
- You can run this script automatically and ensure that you will never lose video titles due to the original video deletion.
- You can use the script to generate reports for playlist management, making it easier to organize and review content.
- You can back up entire playlists, preserving links and titles in case of future changes or deletions on YouTube.
- You can run this script automatically and archive new videos added to the playlist.
- You can use this script to store your playlist data in the MySQL database.
