Skip to content

Instantly share code, notes, and snippets.

@stu43005
Created June 29, 2021 14:32
Show Gist options
  • Save stu43005/c71464a2b81ab1e2be76686ae2b03ecb to your computer and use it in GitHub Desktop.
Save stu43005/c71464a2b81ab1e2be76686ae2b03ecb to your computer and use it in GitHub Desktop.
$json = (Invoke-WebRequest -Uri https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest).Content
$release = ConvertFrom-Json -InputObject $json
$exe = $release.assets | ? { $_.name -eq "yt-dlp.exe" }
Invoke-WebRequest -Uri $exe.browser_download_url -OutFile yt-dlp.exe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment