Skip to content

YouTube Playlist Scheduled Data Fetcher => Rock Webhook => Workflow => Seed Content Channel

This solution

Write a program that lives on a VM that can ask an array of YouTube channels and playlists for (at first all to seed, then, the last NUM of) data, check for redundancies, if there is new content, trigger a workflow that will push these videos from their respective playlist and channels into the proper YouTube playlists and YouTube channels for content channels to hit those apis and append that content all over the site.

Overview

This section is about an Express.js web application that fetches data for each YouTube playlist using the YouTube API on a weekly schedule to trigger a webhook (built into the ROCK RMS @ /youtube/cache), that fires a Workflow to seed the data into the Azure DB as a content chaneel to automatically render the latest video content dynamically accross all pages fetching youtube assets to better compile all the organic views to a central platform, in this case, YouTube.

End Result

Lava / Vue code that calls for data from a content channel still works! And + YouTube content that is uploaded only needs to be uploaded once (as apposed to twice w vimeo) ++ it automatically feeds into the content channel (after the weekly cron job is run).

The Code

I am starting it now and will live here: [YouTube Cron Rock Webhook]!(https://github.com/chaselikethebank/yt-cron-rock-webhook.git)

Explore and learn. Released under the MIT License.