Skip to content

A simple cli to generate WordPress posts using Gpt3 starting from a topic.

Notifications You must be signed in to change notification settings

reconrad48/gpt3-wordpress-post-generator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPT3 WordPress Post Generator

This is a simple script I use to create posts for NoHumansWrite blog. It uses the OpenAI GPT-3 API to generate a WordPress post starting from the topic and tone of what you want to write.

GPT3 WordPress Post Generator

It uses the OpenAI Python library to make the OpenAI api calls and the WordPress XML-RPC library to create WordPress posts.

At the moment this is a very rough implementation. I'm looking to improve it in the future and add more options to the script. Feel free to contribute if you find it useful.

Installation

  1. Clone the repository

  2. Install the requirements: poetry install

  3. Export the following variables:

    export OPENAI_API_KEY="Your OpenAI API Key"
    export WORDPRESS_URL="Your WordPress xmlrpc URL"
    export WORDPRESS_USERNAME="Your WordPress username"
    export WORDPRESS_PASSWORD="Your WordPress password"
  4. Run the script: poetry run python cli.py --help

  5. Enjoy!

Known Limitations

  • WordPress post won't be created using blocks, it will be created using the classic editor. To convert it to blocks, you can go to the post and click on the "Convert to blocks" button.

About

A simple cli to generate WordPress posts using Gpt3 starting from a topic.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%