Install
openclaw skills install asdsadasdAn end-to-end AI Content Pipeline that crawls articles, rewrites them using Google Gemini, and automatically publishes to Facebook Fanpage.
openclaw skills install asdsadasdThis is a production-ready OpenClaw Skill that merges a Web Crawler, an AI Rewriter (Google Gemini), and a Facebook Auto-Publisher into one seamless pipeline. It reads URLs (news articles or Facebook posts), rewrites them into engaging social media captions, and posts them directly to your Fanpage.
requests/BeautifulSoup (for static news) or Apify (for JS-heavy content like Facebook). Generates localized rewritten text via Gemini 2.5 Flash.run.bat / main.py ← Central Orchestrators (CLI Entry points)agents/crawler_agent.py ← Hybrid Crawler (Native + Apify API)agents/writer_agent.py ← AI Content Generator (Gemini Integration)agents/fb_publisher_agent.py ← Graph API Poster (Messages & Images)config.py ← Environment Loader & System ValidationEnsure you create a .env file at the root with the following variables:
# AI Models
GEMINI_API_KEY=...
OPENAI_API_KEY=... # Optional: For DALL-E 3 image generation
# Scraping
APIFY_API_TOKEN=...
# Facebook Graph API
FB_APP_ID=...
FB_APP_SECRET=...
FB_PAGE_ID=...
FB_PAGE_ACCESS_TOKEN=...
From your terminal, run the following commands (Windows run.bat wrappers):
# Analyze a single URL
run.bat analyze "https://vnexpress.net/..."
# Analyze and save as JSON
run.bat analyze "https://dantri.com.vn/..." --save
# Batch analyze from a text file
run.bat analyze-file urls.txt
# Test Graph API Token connection
run.bat test
run.bat test-post
# Full pipeline (Crawl -> Rewrite -> Post to Fanpage)
run.bat run "https://dantri.com.vn/..."
# Pipeline dry-run (No actual post)
run.bat dry "https://dantri.com.vn/..."