๐Ÿ“ฆ mattbalvin / video-playlist-manager

Manage streaming playlists to avoid doom scrolling and focus time on the most valuable content

โ˜… 0 stars โ‘‚ 0 forks ๐Ÿ‘ 0 watching โš–๏ธ MIT License
๐Ÿ“ฅ Clone https://github.com/mattbalvin/video-playlist-manager.git
HTTPS git clone https://github.com/mattbalvin/video-playlist-manager.git
SSH git clone git@github.com:mattbalvin/video-playlist-manager.git
CLI gh repo clone mattbalvin/video-playlist-manager
Matt Balvin Matt Balvin Add a file import tool to add text file based lists of video links to the database a06f88f 7 months ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“„ .gitignore
๐Ÿ“„ database.py
๐Ÿ“„ LICENSE
๐Ÿ“„ README.md
๐Ÿ“„ requirements.txt
๐Ÿ“„ README.md

YouTube Playlist Collector

A Python module to collect and display YouTube playlist data from your YouTube account.

Setup

  • Install the required dependencies:
pip install -r requirements.txt

  • Set up YouTube API credentials:
  • Create a new project or select an existing one
  • Enable the YouTube Data API v3
  • Create OAuth 2.0 credentials
  • Download the credentials and save them as client_secrets.json in the project directory

Usage

Run the script:

python youtube_playlist_collector.py

The first time you run the script, it will:

  • Open your default web browser
  • Ask you to log in to your Google account
  • Request permission to access your YouTube data
  • Save the authentication token for future use
The script will then:
  • Fetch all your playlists
  • For each playlist, fetch all videos
  • Print a formatted list of playlists and their videos

Features

  • OAuth 2.0 authentication
  • Automatic token refresh
  • Pagination support for large playlists
  • Detailed video information including position in playlist
  • Cached credentials for faster subsequent runs