/kdp-gpt

An open-source python script that can generate books using ChatGPT to be listed on Amazon KDP.

Primary LanguagePythonMIT LicenseMIT

kdp-gpt

An open-source python script that can generate books using ChatGPT to be listed on Amazon KDP. The script will ask you for a title and description for the book, as well as the tone and how many chapters you want to include; a pdf file will then be generated.

Setup

  1. Navigate to https://platform.openai.com/account/api-keys to generate an API key
  2. Create a .env file and add your key
OPENAI_API_KEY=...
  1. Create python virtual environment, this could be done in many ways but I prefer using venv
python3 -m venv .venv
  1. Install requirements.txt
pip install -r requirements.txt

Usage

python3 main.py