Skip to content

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

License

Notifications You must be signed in to change notification settings

b7011343/kdp-gpt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Languages