-
-
Save Windows81/ea0e9b5c6a844179dc352a0deb7d7367 to your computer and use it in GitHub Desktop.
A PowerShell script that retrieves video metadata for my Unlisted Ads playlists. Please don't abuse it.
This file contains 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
$k='AIzaSyBZBpp5F7A7C9q38arfOfGr209ZTfWIhUc';$l=@();$t='';@('PLO5PZUR0wDLCPtDaQijov4MyDi9_5xiMS','PLO5PZUR0wDLAxqyurUAZOSfE9NjUuI2nY')|%{do{$j=iwr "https://content-youtube.googleapis.com/youtube/v3/playlistItems?maxResults=50&playlistId=$_&part=snippet&key=$k&pageToken=$t"|ConvertFrom-Json;$t=$j.nextPageToken;$l+=$j.items|%{@{videoId=$_.snippet.resourceId.videoId;title=$_.snippet.title;description=$_.snippet.description}}}while($t);} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment