← 返回
安全合规 Key 中文

Tweet Pipeline

Notion-to-Twitter automation — pull approved tweets from a Notion database, schedule one-shot crons for exact post times, and post via X/Twitter OAuth2 API....
Notion 到 Twitter 自动化——从 Notion 数据库提取已审批的推文,按精确发布时间设置定时任务,并通过 X/Twitter OAuth2 API 发布。
nissan
安全合规 clawhub v1.0.0 1 版本 99859.2 Key: 需要
★ 0
Stars
📥 709
下载
💾 14
安装
1
版本
#latest

概述

Tweet Pipeline

Automate tweet posting from a Notion content calendar. Draft tweets in Notion, set status to "Approved" with a scheduled time, and this pipeline handles the rest.

Workflow

Notion DB (Tweet Pipeline)
  ├── Status: Pending → Agent drafts tweet
  ├── Status: Approved → Heartbeat picks up
  │     ├── Future time → Schedules one-shot cron
  │     └── Past due → Posts immediately
  └── Status: Posted → Done (updated by poster)

Notion DB Schema

PropertyTypeValues
---------
TitletitleTweet text
StatusselectPending, Approved, Posted, Failed
ScheduleddateISO datetime with timezone
PlatformselectTwitter, LinkedIn
Posted AtdateFilled after posting

Usage

python3 scripts/tweet_poster.py             # Check and schedule
python3 scripts/tweet_poster.py --dry-run   # Preview without scheduling

Key Lessons

  • One-shot crons for exact times — don't batch-post from heartbeat, schedule each tweet individually
  • X Free tier: 1,500 tweets/month, 280 char limit, no media upload via API
  • Track scheduled tweets in a state file to avoid duplicate scheduling

Files

  • scripts/tweet_poster.py — Scheduler (reads Notion, creates crons)
  • scripts/tweet_post_one.py — Poster (called by each cron job)

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 14:41 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 89 📥 30,604
security-compliance

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,714
security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,215 📥 266,439