Last active
November 20, 2024 03:31
-
-
Save mrladeia/122ce91e7d684a693563de857013b699 to your computer and use it in GitHub Desktop.
get links youtube by playlist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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
https://www.youtube.com/watch?v=ZzIJFxUSFzY