Skip to content

GPT WordPress integrates OpenAI's GPT-3.5 Turbo with WordPress to auto-generate blog posts from a title prompt.

License

Notifications You must be signed in to change notification settings

j-herrington/gpt-wp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPT-WP

Generate blog content and publish to WordPress using OpenAI GPT-3.5-turbo. Includes image integration and automated testing.

Features:

  • 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.

Project Structure

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

Installation

Please refer to the installation guide for detailed instructions.

Configuration

Please refer to the configuration guide for detailed instructions.

Usage

  1. Generate blog content and post to WordPress:

    gpt-wp --title "Your Blog Title"
  2. Run in test mode:

    gpt-wp --title "Your Blog Title" --test-mode

Running Tests

To run the tests:

  1. Set the TEST_MODE environment variable:

    export TEST_MODE=true
  2. Run the tests using pytest:

    PYTHONPATH=gpt_wp pytest tests/
  3. Run the tests using unittest:

    PYTHONPATH=gpt_wp python -m unittest discover -s tests

Contributing

Please refer to the contributing guide for detailed instructions on how to contribute to this project.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

GPT WordPress integrates OpenAI's GPT-3.5 Turbo with WordPress to auto-generate blog posts from a title prompt.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages