Book generator using the ChatGPT API
Top 79.5% on sourcepulse
BookGPT is a Python application designed to automatically generate complete books on specified topics using the ChatGPT API. It targets users who need to quickly produce non-fiction content, such as writers, researchers, or content creators, by automating the book-writing process from chapter structure to full content generation.
How It Works
The program leverages the ChatGPT API to generate book content based on user-defined parameters including chapter count, chapter length, topic, and book category. It first prompts the user for these inputs, then generates a title, chapter titles, and the body content for each chapter, saving the output as a Markdown file. This approach automates a time-consuming creative process by offloading content generation to a powerful language model.
Quick Start & Requirements
pip install -r requirements.txt
config.json
).python run.py
Highlighted Details
Maintenance & Community
The project is open for contributions via pull requests and issue submissions.
Licensing & Compatibility
Licensed under the MIT License, permitting commercial use and integration into closed-source projects.
Limitations & Caveats
Currently in beta (v0.8.0) and only supports non-fiction book generation. Chapter length may not always be exact due to API data limitations. Many features are still missing.
1 year ago
1 day