Content Machine
Automated content generation system that discovers trending topics and publishes to social media. Uses AI to research, write, and schedule posts.
What It Does
- Monitors trends across multiple sources
- Generates engaging content using AI
- Schedules and publishes to social platforms
- Tracks performance and optimizes
Setup
Prerequisites
- OpenAI API Key or Anthropic API Key - For content generation
- Postiz API Key - For posting to social platforms
- Optional: Platform-specific APIs (Twitter, LinkedIn, etc.)
Environment Variables
export OPENAI_API_KEY="your_openai_key"
export POSTIZ_API_KEY="your_postiz_key"
Installation
pip install requests openai
Usage
Run content generation
python content-machine.py --niche tech --platforms twitter,linkedin --count 5
Configure sources
Edit config/sources.json to add:
- RSS feeds
- News APIs
- Social trend endpoints
Set posting schedule
python content-machine.py --schedule "9am,12pm,6pm"
Configuration
config/content.json- Content templatesconfig/schedule.json- Posting timesconfig/platforms.json- Platform settings
Features
- Multi-platform posting (Twitter, LinkedIn, Instagram, TikTok)
- Content templates and virality scoring
- Auto-hashtag generation
- Image generation for posts
- Performance analytics
Cost
Depends on AI usage:
- OpenAI: ~$0.001/post
- Images: ~$0.01/post (if generating)