How I Use Huginn - Sync YouTube Likes to Discord#
#tool
Overall Idea#
This article introduces how to use Huginn to sync YouTube likes to Discord. Specifically, it uses a public YouTube playlist, subscribes to it using RSSHub, and then monitors and syncs using Huginn. The following are the detailed steps and process.
Step 1: Get the YouTube Playlist ID#
In order to monitor in Huginn, you need to first get a public YouTube playlist and save its ID. You can use any playlist on YouTube or create one yourself.
For example, for the following playlist link:
We only need to extract the ID from it: PL799m_aW7dgrpraC0OY2-bTZHFF9obW8k.
Step 2: Subscribe to the RSSHub URL#
Once you have the playlist ID, you can subscribe to the RSSHub URL. For example:
https://rsshub.app/youtube/playlist/PL799m_aW7dgrpraC0OY2-bTZHFF9obW8k
This URL can return an RSS feed consisting of videos from that playlist on YouTube. Huginn can use this feed for monitoring and syncing.
Step 3: Implement Syncing with Huginn
In Huginn, you can use the RSSAgent to subscribe to the RSS feed. When the feed updates, the RSSAgent will trigger an event.
Reference
[[How I Use Huginn - Syncing xlog to Discord]]