Skip to content

MichalLebeda/no-api-key-yt-playlist-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YouTube Playlist Backup

YouTube videos get deleted/hidden all the time.
Sadly, it's not even possible to get the title which would be useful for music playlists etc.
This tool saves all the videos into a database making it possible to obtain titles of deleted videos.

Features

  • Obtain video/playlist metadata by scraping playlist URLs defined in playlists.txt file
  • Store metadata from each execution in SQLite database making tracking video availability changes possible.
  • No API key needed (only public/unlisted playlists supported)

Usage

Put non-private (public/unlisted) playlist URLs to playlists.txt.
One URL per line, like so:

https://www.youtube.com/playlist?list=PLAYLIST_ID_01 # Some comment/name
https://www.youtube.com/playlist?list=PLAYLIST_ID_02
https://www.youtube.com/playlist?list=PLAYLIST_ID_03

Setup venv

./setup.sh

Run

./run.sh

Check the execution logs or inspect the data/database.db file using tool such as DB Browser for Sqlite.

TIP: Configure a Cron job for periodical checks
NOTE: Private playlists produce error which is logged and also inserted into error DB table but does not stop the program

Todo

  • Optionally backup video files, not just metadata
  • Use ORM with migrates
  • Use Python package
  • CLI arguments
  • More transparent
  • Diff reports

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published