An automated blog content generation and publishing system using CrewAI, RSS feeds, and WordPress integration.
This project implements an automated blog content pipeline that:
- Fetches latest tech news from RSS feeds
- Analyzes and summarizes the content
- Generates well-structured blog posts
- Publishes content directly to WordPress
- 🤖 Automated content generation using CrewAI agents
- 📰 RSS feed integration for real-time news fetching
- ✍️ AI-powered content writing and summarization
- 🌐 WordPress integration via REST API
- 📊 Logging and performance monitoring
- Python 3.12+
- Ollama running locally
- WordPress site with REST API access
- Environment variables configured
- Clone the repository:
git clone https://github.com/ekinbulut/crewai-python-publisher.git
cd crewai- Create a virtual environment and activate it:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install dependencies:
pip install -r requirements.txt- Configure environment variables:
cp .env.example .env
# Edit .env with your WordPress credentialsCopy .env.example to .env and update the values:
cp .env.example .env
The .env file should contain the following variables:
WORDPRESS_URL=your-wordpress-site/wp-json/wp/v2/posts
WORDPRESS_USER=your-username
WORDPRESS_PASS=your-password
Run the main script:
python main.pyRun tests:
python -m pytest tests/main.py- Main application scriptcustom_ollama.py- Ollama LLM integrationtools/- CrewAI tools implementationnews_fetcher_tool.py- RSS feed integrationwordpress_poster_tool.py- WordPress API integration
tests/- Test files
The project includes comprehensive tests:
- Unit tests for individual components
- Integration tests for the complete workflow
- Mock tests for WordPress integration
Run tests with:
python -m pytest- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
This project is licensed under the terms of the MIT License. See the LICENSE file for details.