Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nicolaballotta/gpt3-wordpress-post-generator
A simple cli to generate WordPress posts using Gpt3 starting from a topic.
https://github.com/nicolaballotta/gpt3-wordpress-post-generator
Last synced: 3 months ago
JSON representation
A simple cli to generate WordPress posts using Gpt3 starting from a topic.
- Host: GitHub
- URL: https://github.com/nicolaballotta/gpt3-wordpress-post-generator
- Owner: nicolaballotta
- Created: 2022-12-13T17:06:07.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-17T08:47:03.000Z (about 2 years ago)
- Last Synced: 2024-08-05T03:01:33.552Z (6 months ago)
- Language: Python
- Size: 106 KB
- Stars: 118
- Watchers: 3
- Forks: 30
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-chatgpt - GPT3 WordPress Post Generator - Generate WordPress blog posts. (CLI tools / Examples)
- awesome-chatgpt - GPT3 WordPress Post Generator - Generate WordPress blog posts. (CLI tools / Examples)
README
# GPT3 WordPress Post Generator
This is a simple script I use to create posts for [NoHumansWrite](https://nohumanswrite.com) 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](screenshot.png)
It uses the [OpenAI Python library](https://github.com/openai/openai-python) to make the OpenAI api calls and the
[WordPress XML-RPC library](https://github.com/maxcutler/python-wordpress-xmlrpc) 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:```bash
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.