Skip to content

Instantly share code, notes, and snippets.

@mrladeia
Last active November 2, 2019 23:17
Show Gist options
  • Save mrladeia/122ce91e7d684a693563de857013b699 to your computer and use it in GitHub Desktop.
Save mrladeia/122ce91e7d684a693563de857013b699 to your computer and use it in GitHub Desktop.
get links youtube by playlist
$Playlist = ((Invoke-WebRequest "https://www.youtube.com/watch?v=XXXXXXX&list=XXXXXXXXXXXXXXXXXX&index=1").Links | Where {$_.class -match "playlist-video"}).href
ForEach ($Video in $Playlist) {
Write-Output ("https://www.youtube.com" + $Video)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment