Skip to main content

A CLI tool to generate promotional book content using Douban and Zhipu APIs

Project description

Book Post Generator

This is a command-line application that generates promotional content for books using data from Douban and custom promotional strategies.

Installation

To install book_post_generator, run this command in your terminal:

pip install book_post_generator

This is the preferred method to install book_post_generator, as it will always install the most recent stable release.

If you have Poetry installed and prefer to use it for installation, run:

poetry add book_post_generator

Usage

Once installed, you can run the application with the following command:

book-post-generator

The program will prompt you to enter the book title and then retrieve the book information to generate promotional content.

Configuration

Before the first run, make sure to create a config.ini file in your working directory with the following structure:

[API]
DOUBAN_API_KEY = your_douban_api_key_here
ZHIPU_API_KEY = your_zhipu_api_key_here

Replace your_douban_api_key_here and your_zhipu_api_key_here with your actual API keys.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

book_post_generator-0.1.2.tar.gz (5.9 kB view hashes)

Uploaded Source

Built Distribution

book_post_generator-0.1.2-py3-none-any.whl (7.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page