-
Install Homebrew (macOS/Linux)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" -
Install
yt-dlpbrew install yt-dlp
-
Install the YouTube Video Downloader
git clone https://github.com/AAlkiyumi/Youtube-Video-Downloader.git
-
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
- Go to
-
Get URLs
- Open your YouTube liked videos/playlist
- Click the extension icon
- Select the videos you would like to download
- Click "Download Selected URLs"
-
Open Playlist
Open your liked videos or playlist in Chrome -
Scroll to Load All Videos
PressEndkey repeatedly until all videos are loaded -
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); } }
-
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
- Place
url.txtin your working directory - Run Download
python3 main.py