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
https://github.com/pcgeek86/youtubehttps://github.com/pcgeek86https://trevorsullivan.net/
#youtube #powershell #automation
15 Comments