Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/b7011343/kdp-gpt

An open-source python script that can generate books using ChatGPT to be listed on Amazon KDP.
https://github.com/b7011343/kdp-gpt

ai amazon-kdp book chatgpt dalle2 generate kdp python python-script python3

Last synced: about 1 month ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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=...
```
3. Create python virtual environment, this could be done in many ways but I prefer using venv
```bash
python3 -m venv .venv
```
4. Install requirements.txt
```bash
pip install -r requirements.txt
```

## Usage
```bash
python3 main.py
```