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 ~/.book_post_generator/config.ini 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file book_post_generator-0.1.3.tar.gz.
File metadata
- Download URL: book_post_generator-0.1.3.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13b00226e1ef1cfd042077cb88422e0a634a81d44c7af58e39e9af96dc0220b6
|
|
| MD5 |
8ae6b716619543cf11a741ce7767be9c
|
|
| BLAKE2b-256 |
9792349d026f2f97aab70d56e67575ffca855e7a174e2434e6a91ed0b1a69f6c
|
File details
Details for the file book_post_generator-0.1.3-py3-none-any.whl.
File metadata
- Download URL: book_post_generator-0.1.3-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
572dcb7533846b78704dde7135ecfb048114b9fbe6115e83e90846389ec92cbe
|
|
| MD5 |
e1059deabc9b93db7c9c02cc872b64ff
|
|
| BLAKE2b-256 |
79a94d96990444983718990ace6dcdb2afc119ea57960d471c25aca9e8b4a217
|