Learn PowerShell | Use the Open Source YouTube Module to Automate Activities 📺

preview_player
Показать описание
Trevor Sullivan developed an open source module for PowerShell, which wraps the YouTube REST API. You can use this module to automate various activities within the YouTube platform, such as adding or deleting comments, subscribing or unsubscribing from YouTube channels, obtaining video details, searching for videos and channels, and so on. You can authenticate to YouTube by using a standard oAuth flow with your web browser. This is made possible in native PowerShell thanks to the open source Pode module from another community member.

The YouTube module for PowerShell is offered under the permissive MIT license, so you can use this in virtually any project, personal or professional.

0:00 YouTube PowerShell Module
2:40 Pode Dependency for YouTube oAuth
4:25 YouTube PowerShell Module Overview
7:50 Find YouTube Module on PowerShell Gallery
9:00 Run the Install-Module Command
9:25 Configure Google Cloud for YouTube Data API
11:50 Run Set-YouTubeConfiguration PowerShell Command
14:22 Search for YouTube Videos with PowerShell
16:15 Subscribe to YouTube Channel with PowerShell
20:40 Data Paging with YouTube API
26:40 Add and Remove Comments from YouTube Videos

#youtube #powershell #automation
Рекомендации по теме
Комментарии
Автор

For a home user interested in using the API, what's the recommended settings for OAuth consent screen? So many settings and questions on those pages which aren't covered here. Thanks.

wigglywrigglydoo
Автор

Thank you for the great work. I would love to see the ability to download/upload videos

MKA_NET
Автор

So I was wondering if anyone has a way to use powershell or task scheduler to get a YouTube stream to automat. I don’t want to make a spam channel which is all I am getting in advice searches. But what I want to do is make it so that the laptop we use to stream our services can automate and start and stop the stream by itself. (I have some family events that I wish to attend) I got it to automat turning the laptop on and off; and I can get it to start a one time stream using obs but I can’t get it to reset or deal with anything in YouTube if I don’t have the “go live” window already up. Any tips or places for me to look?

happyhourk
Автор

I must say that this is a pretty well explained tutorial, but the "grant-youtubeoauth" doesn't work with me. It doesn't even show up when i do "get-command -help youtube". I tried reinstalling the module but "grant-youtubeoauth" never shows up.

Andy-ceij