πŸ“± Automated YouTube video uploads with 12h interval scheduling in JST

⚑ 369 views Β· πŸ“± Social Media & Email Marketing

πŸ’‘ Pro Tip β€” YouTube’s API quotas can be a bottleneck when you’re pulling data at scale. ScraperNode is a community node with dedicated scrapers for channels, videos, and comments β€” no quota limits, just structured data.

View All Scrapers

Description

This workflow automates a batch upload of multiple videos to YouTube, spacing each upload 12 hours apart in Japan Standard Time (UTC+9) and automatically adding them to a playlist.

βš™οΈ Workflow Logic

  1. Manual Trigger β€” Starts the workflow manually.
  2. List Video Files β€” Uses a shell command to find all .mp4 files under the specified directory (/opt/downloads/单词卑/A1-A2).
  3. Sort and Generate Items β€” Sorts videos by day number (dayXX) extracted from filenames and assigns a sequential order value.
  4. Calculate Publish Schedule (+12h Interval) β€”
    • Computes the next rounded JST hour plus a configurable buffer (default 30 min).
    • Staggers each video’s scheduled time by order Γ— 12 hours.
    • Converts JST back to UTC for YouTube’s publishAt field.
  5. Split in Batches (1 per video) β€” Iterates over each video item.
  6. Read Video File β€” Loads the corresponding video from disk.
  7. Upload to YouTube (Scheduled) β€” Uploads the video privately with the computed publishAtUtc.
  8. Add to Playlist β€” Adds the newly uploaded video to the target playlist.

πŸ•’ Highlights

πŸ’‘ Typical Use Cases


Author: Zane
Category: Automation / YouTube / Scheduler
Timezone: JST (UTC+09:00)

πŸ”— Nodes Used

YouTube, Read/Write Files from Disk

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup