How to get all the youtube videos link in a playlist?

youtube logo

How to get all the youtube videos link in a playlist? You can try this trick without using any software. This is the best of the best I ever use.

Step 1: Open youtube channel and copy play now button link location. (Note not from top url)
www.youtube.com/watch?v=7-hJY-lfhVU&list=PLpSG1JDEogRRqE3j_dReQRH2F7R9ajnag
(what ever link you will copy it should has &list parameter)

Step 2: Insert this url into magical code(powershell)

Step 3: Open powershell window utility from any folder like i am doing from desktop Test Folder

Step 4: File~open window powershell~as administrator . Or right click Start button --> Windows PowerShell (Admin)

Step 5: Copy magical code and paste into powershell and press enter for execution

Thats all you can copy these urls if you want, have fun

Magical code(powershell)

$Playlist = ((Invoke-WebRequest "https://www.youtube.com/watch?v=7-hJY-lfhVU&list=PLpSG1JDEogRRqE3j_dReQRH2F7R9ajnag").Links | Where {$_.class -match "playlist-video"}).href
ForEach ($Video in $Playlist) {
$s ="https://www.youtube.com" + $Video
$s =$s.Substring(0, $s.IndexOf('&'))
    Write-Output ($s)
}
Subscribe
Notify of
guest
0 Bình luận
Cũ nhất
Mới nhất Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x