Skip to content

AAlkiyumi/Youtube-Video-Downloader

Repository files navigation

Downloading YouTube Playlists or Liked Videos Using yt-dlp

Prerequisites

  1. Install Homebrew (macOS/Linux)

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  2. Install yt-dlp

    brew install yt-dlp
  3. Install the YouTube Video Downloader

    git clone https://github.com/AAlkiyumi/Youtube-Video-Downloader.git

Extracting Links from a YouTube Playlist

Option 1: Using Chrome Extension

  1. Install the YouTube URL Scraper Extension

    git clone https://github.com/AAlkiyumi/Youtube-URL-Scraper-Chrome-Extension.git
    • Go to chrome://extensions
    • Enable "Developer mode"
    • Click "Load unpacked" and select the extension folder
  2. Get URLs

    • Open your YouTube liked videos/playlist
    • Click the extension icon
    • Select the videos you would like to download
    • Click "Download Selected URLs"

Option 2: Manual Extraction

  1. Open Playlist
    Open your liked videos or playlist in Chrome

  2. Scroll to Load All Videos
    Press End key repeatedly until all videos are loaded

  3. Extract Links using Console Command Open Developer Tools in your browser by pressing F12 and go to the Console tab Copy and paste the following script into the console:

    var links = document.getElementsByTagName("a");
    for (var i = 0; i < links.length; i++) {
        if (links[i].href.includes("&list=LL&index=")) {
            console.log(links[i].href);
        }
    }
  4. Save the Output

    • Use a text editor like Notepad++ or any tool of your choice to remove unnecessary parts of the links
    • Paste the links to url.txt

Key differences:

  • Option 1 (Extension) allows user to easily get video URLs and creates url.txt
  • Option 2 (Manual) requires console work but needs no extensions
  • Both methods ensure clean URLs without &list= parameters

Download Videos

  1. Place url.txt in your working directory
  2. Run Download
    python3 main.py

About

This YouTube Downloader app enables bulk video downloading from YouTube via a text file containing YouTube URLs, supports mass file renaming using regex syntax, and includes an FFmpeg-based MP4 format converter.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages