Jump to content

Recommended Posts

Posted
Trying to get the actual playlist url on youtube but can't find it.

 

This is the first video.

https://www.youtube.com/watch?v=KK5YGWS5H84&list=RDKK5YGWS5H84&index=1

 

Tried

http://www.youtube.com/playlist?list=RDKK5YGWS5H84

but get an error page.

 

I just want to hyperlink the playlist rather than the video incase the list changes.

 

Cheers,

 

Those Youtube generated playlists are different to user generated playlists.

It seems you can't like directly to them without specifying a video.

I think they're intended to be like a 'radio' button. You start with a song, and it generates a list of stuff you might like.

The link you've already got is as close as you're going to get to a static link.

Posted (edited)
This does get the list of URLs in the playlist but I can't' seem to get them out again

You might find this PowerShell script useful...

 

$Playlist = ((Invoke-WebRequest "https://www.youtube.com/watch?v=KK5YGWS5H84&list=RDKK5YGWS5H84&index=1").Links | Where {$_.class -match "playlist-video"}).href

ForEach ($Video in $Playlist) {
   Write-Output ("https://www.youtube.com" + $Video)
}

 

http://a.pomf.se/ehwfsn.png

 

https://www.youtube.com/watch?v=KK5YGWS5H84&index=1&list=RDKK5YGWS5H84
https://www.youtube.com/watch?v=RBumgq5yVrA&index=2&list=RDKK5YGWS5H84
https://www.youtube.com/watch?v=uGDA0Hecw1k&index=3&list=RDKK5YGWS5H84
https://www.youtube.com/watch?v=TO9Qa7MpAvw&index=4&list=RDKK5YGWS5H84
https://www.youtube.com/watch?v=cOeKidp-iWo&index=5&list=RDKK5YGWS5H84
https://www.youtube.com/watch?v=7Xf-Lesrkuc&index=6&list=RDKK5YGWS5H84
https://www.youtube.com/watch?v=1lyu1KKwC74&index=7&list=RDKK5YGWS5H84
https://www.youtube.com/watch?v=OMOGaugKpzs&index=8&list=RDKK5YGWS5H84
https://www.youtube.com/watch?v=8UVNT4wvIGY&index=9&list=RDKK5YGWS5H84
https://www.youtube.com/watch?v=djV11Xbc914&index=10&list=RDKK5YGWS5H84
https://www.youtube.com/watch?v=VdQY7BusJNU&index=11&list=RDKK5YGWS5H84
https://www.youtube.com/watch?v=Cwkej79U3ek&index=12&list=RDKK5YGWS5H84
https://www.youtube.com/watch?v=NRtvqT_wMeY&index=13&list=RDKK5YGWS5H84
https://www.youtube.com/watch?v=Qt2mbGP6vFI&index=14&list=RDKK5YGWS5H84
https://www.youtube.com/watch?v=YkADj0TPrJA&index=15&list=RDKK5YGWS5H84
https://www.youtube.com/watch?v=4z2DtNW79sQ&index=16&list=RDKK5YGWS5H84
https://www.youtube.com/watch?v=NdYWuo9OFAw&index=17&list=RDKK5YGWS5H84
https://www.youtube.com/watch?v=xwtdhWltSIg&index=18&list=RDKK5YGWS5H84
https://www.youtube.com/watch?v=FTQbiNvZqaY&index=19&list=RDKK5YGWS5H84
https://www.youtube.com/watch?v=VV1XWJN3nJo&index=20&list=RDKK5YGWS5H84
https://www.youtube.com/watch?v=eFTLKWw542g&index=21&list=RDKK5YGWS5H84
https://www.youtube.com/watch?v=iAP9AF6DCu4&index=22&list=RDKK5YGWS5H84
https://www.youtube.com/watch?v=loWXMtjUZWM&index=23&list=RDKK5YGWS5H84
https://www.youtube.com/watch?v=5QD5n98R_nk&index=24&list=RDKK5YGWS5H84
https://www.youtube.com/watch?v=UrIiLvg58SY&index=25&list=RDKK5YGWS5H84
https://www.youtube.com/watch?v=tIdIqbv7SPo&index=26&list=RDKK5YGWS5H84

Edited by Arthur
  • Thanks 1
  • 5 years later...
Posted

I know this is very outdated but the above Powershell code has been working perfectly for me for a very long time but I run into more and more playlists that dont wan to load

Example

 

Any Ideas on how to get the individual Videos URL's here

 

Thanks

Posted

Hey @BlueDargon,

You can give this a go, it searches through the content of the page for a pattern that includes both a video ID and a playlist ID;

$url = "https://www.youtube.com/watch?v=WSUFzC6_fp8&list=RDQMOI78oB-40zU&start_radio=1"
$playlist = (Invoke-WebRequest "$url")
$matches = ($playlist.Content | Select-String -Pattern '"videoId":"([^"]+)","playlistId"' -AllMatches).Matches
ForEach ($match in $matches | Sort-Object | Get-Unique) {
   Write-Output ("https://www.youtube.com/watch?v=" + $match.groups[1].value)
}

 

PS C:\Users\Chris\Desktop> C:\Users\Chris\Desktop\youtube.ps1
https://www.youtube.com/watch?v=30TkClWvT5k
https://www.youtube.com/watch?v=3MKP3SkzkIA
https://www.youtube.com/watch?v=3ZT9_H4-hbM
https://www.youtube.com/watch?v=4KiFSKLTj0U
https://www.youtube.com/watch?v=5Vwu-t7QRaE
https://www.youtube.com/watch?v=aAkMkVFwAoo
https://www.youtube.com/watch?v=bjQzJAKxTrE
https://www.youtube.com/watch?v=Dkq3LD-4pmM
https://www.youtube.com/watch?v=E8gmARGvPlI
https://www.youtube.com/watch?v=EGOz9f78IjI
https://www.youtube.com/watch?v=emXbfEzXn6A
https://www.youtube.com/watch?v=GjtYtBGrP6Y
https://www.youtube.com/watch?v=IJPc7esgvsA
https://www.youtube.com/watch?v=ku7ohU1IGls
https://www.youtube.com/watch?v=KYiUSalSjS0
https://www.youtube.com/watch?v=L1nQpoAvTSg
https://www.youtube.com/watch?v=LRP8d7hhpoQ
https://www.youtube.com/watch?v=LUjn3RpkcKY
https://www.youtube.com/watch?v=Mj7Pr42rliI
https://www.youtube.com/watch?v=Mk_GmhD053E
https://www.youtube.com/watch?v=mN7LW0Y00kE
https://www.youtube.com/watch?v=nlR0MkrRklg
https://www.youtube.com/watch?v=Nx-DvH41Tjo
https://www.youtube.com/watch?v=pFjdfjrtf1Q
https://www.youtube.com/watch?v=Q8ugJnIG_Lk
https://www.youtube.com/watch?v=qJ_MGWio-vc
https://www.youtube.com/watch?v=QJ5DOWPGxwg
https://www.youtube.com/watch?v=UqItlHUSN-4
https://www.youtube.com/watch?v=VAMzAIH12yc
https://www.youtube.com/watch?v=WSUFzC6_fp8

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...