Generate blog content and publish to WordPress using OpenAI GPT-3.5-turbo. Includes image integration and automated testing.
- Automated Content Generation: Create engaging blog posts using OpenAI GPT-3.5-turbo.
- Image Integration: Automatically download images from Unsplash to enhance blog content.
- WordPress Publishing: Effortlessly upload and publish posts on WordPress.
- Automated Testing: Generate and run tests to validate the content generation process.
gpt-wp/
├── docs/
│ ├── user_guide.md
│ ├── api_documentation.md
│ ├── installation_guide.md
│ ├── configuration_guide.md
│ ├── contributing_guide.md
│ ├── release_notes.md
│ └── faq.md
├── gpt_wp/
│ ├── __init__.py
│ ├── __main__.py
│ ├── cli.py
│ ├── content_generator.py
│ ├── image_downloader.py
│ ├── main.py
│ ├── utils.py
│ └── wordpress_uploader.py
├── tests/
│ ├── __init__.py
│ ├── test_content_generator.py
│ ├── test_image_downloader.py
│ ├── test_utils.py
│ └── test_wordpress_uploader.py
├── venv/
├── .gitignore
├── LICENSE
├── README.md
├── requirements.txt
└── setup.py
Please refer to the installation guide for detailed instructions.
Please refer to the configuration guide for detailed instructions.
-
Generate blog content and post to WordPress:
gpt-wp --title "Your Blog Title"
-
Run in test mode:
gpt-wp --title "Your Blog Title" --test-mode
To run the tests:
-
Set the
TEST_MODE
environment variable:export TEST_MODE=true
-
Run the tests using
pytest
:PYTHONPATH=gpt_wp pytest tests/
-
Run the tests using
unittest
:PYTHONPATH=gpt_wp python -m unittest discover -s tests
Please refer to the contributing guide for detailed instructions on how to contribute to this project.
This project is licensed under the MIT License. See the LICENSE file for details.