Content Repurposer

v1.0.0

Repurpose any blog post or article into multiple social media formats. Input a URL or text, get X/Twitter thread, LinkedIn post, Instagram caption, email sni...

1· 572· 1 versions· 0 current· 0 all-time· Updated 18h ago· MIT-0

Install

openclaw skills install oc-content-repurposer

Content Repurposer

Turn any article or blog post into ready-to-post content for multiple platforms.

Quick Start

# Repurpose from URL — generates all formats
uv run --with beautifulsoup4 python scripts/repurpose.py url "https://example.com/blog-post"

# Repurpose from text file
python scripts/repurpose.py file article.txt

# Generate only specific formats
uv run --with beautifulsoup4 python scripts/repurpose.py url "https://example.com/post" --formats twitter,linkedin

# Output as JSON (for automation)
uv run --with beautifulsoup4 python scripts/repurpose.py url "https://example.com/post" -f json

# Save all outputs to files
uv run --with beautifulsoup4 python scripts/repurpose.py url "https://example.com/post" -o output/

# Repurpose from clipboard/stdin
echo "Your article text here..." | python scripts/repurpose.py stdin

Commands

CommandArgsDescription
url<url> [--formats LIST] [-f FORMAT] [-o DIR]Extract article from URL and repurpose
file<path> [--formats LIST] [-f FORMAT] [-o DIR]Repurpose from text/markdown file
stdin[--formats LIST] [-f FORMAT]Repurpose from piped input

Output Formats

PlatformWhat You Get
Twitter/XThread of 5-8 tweets, each ≤280 chars, with hooks and hashtags
LinkedInProfessional post (1300 chars), insight-driven, with CTA
InstagramCaption (2200 chars max), storytelling style, 20-30 hashtags
EmailNewsletter snippet with subject line, preview text, and body
Summary3-sentence TL;DR for quick sharing

Examples

From URL

uv run --with beautifulsoup4 python scripts/repurpose.py url "https://blog.example.com/ai-trends-2026"

Only Twitter + LinkedIn

uv run --with beautifulsoup4 python scripts/repurpose.py url "https://example.com/post" --formats twitter,linkedin

Save to directory

uv run --with beautifulsoup4 python scripts/repurpose.py url "https://example.com/post" -o ./social-posts/
# Creates: twitter.txt, linkedin.txt, instagram.txt, email.txt, summary.txt

Notes

  • Uses beautifulsoup4 for URL extraction (optional for file/stdin input)
  • Content extraction focuses on article body (removes nav, sidebar, footer)
  • All generated content is original repurposing, not copy-paste
  • Character limits are enforced per platform

Version tags

automationvk971d0d11c47hzbcqwc96hvmf581p7ffcontentvk971d0d11c47hzbcqwc96hvmf581p7fflatestvk971d0d11c47hzbcqwc96hvmf581p7ffmarketingvk971d0d11c47hzbcqwc96hvmf581p7ffsocial-mediavk971d0d11c47hzbcqwc96hvmf581p7ff