Autonomous Publishing System — full stack: orchestrator, 8 vertical sites, admin dashboard, analytics, cron pipeline

This commit is contained in:
drjones
2026-08-03 21:44:26 -07:00
commit 493776b9f8
16 changed files with 2962 additions and 0 deletions

26
cron/daily_publish.py Normal file
View File

@@ -0,0 +1,26 @@
#!/usr/bin/env python3
"""
Daily autonomous publishing script.
Runs every morning to discover topics, research, write, and publish articles.
Usage: python3 ~/auto-publisher/cron/daily_publish.py [--max 3]
"""
import sys
import os
sys.path.insert(0, os.path.expanduser("~/auto-publisher/core"))
from orchestrator import run_daily_pipeline, init_db
if __name__ == "__main__":
import argparse
ap = argparse.ArgumentParser()
ap.add_argument("--max", type=int, default=3, help="Max articles to publish")
args = ap.parse_args()
# Initialize DB if needed
init_db()
# Run the pipeline
print("🚀 Starting daily autonomous publishing pipeline...")
run_daily_pipeline(max_articles=args.max)
print("✅ Daily pipeline complete")