BookGPT  by mikavehns

Book generator using the ChatGPT API

created 2 years ago
356 stars

Top 79.5% on sourcepulse

GitHubView on GitHub
Project Summary

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

  • Install: pip install -r requirements.txt
  • Prerequisites: ChatGPT API key (must be added to config.json).
  • Usage: python run.py
  • More examples: examples/ directory

Highlighted Details

  • Generates complete books with user-specified chapter amounts, lengths, topics, and categories.
  • Outputs a structured book including title, chapter titles, and chapter content in Markdown format.
  • Offers flexibility for integration into other applications like websites or bots.

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.

Health Check
Last commit

1 year ago

Responsiveness

1 day

Pull Requests (30d)
0
Issues (30d)
0
Star History
2 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.