amazon-books
Search books across all sources with summaries and Amazon purchase links.
What it does
- - Search books by title, author, or keyword across multiple sources
- Return full book descriptions from Google Books API
- Provide direct Amazon purchase links
- Show Heardly summary if available
- Support multiple book sources (Heardly, Google Books, Open Library)
- Return user-friendly formatted text by default
When to use this skill
Use this skill when the user asks:
- - "Do you have books by Kevin Kelly?"
- "Where can I buy books about happiness?"
- "Search for books on machine learning"
- "Find me books by Elon Musk"
- "What books are available about AI?"
Installation
CODEBLOCK0
Usage
CODEBLOCK1
Output
Formatted text with:
- - Title, author, description
- Amazon purchase link
- Heardly summary (if available)
- Ready to display to users
Data Sources
- 1. Heardly Database (5904 books) — fastest, local
- Google Books API (free, millions of books)
- Open Library API (free, open source)
- Amazon Search Links (no API needed)
License
MIT
amazon-books
跨来源搜索图书,提供摘要和亚马逊购买链接。
功能
- - 按书名、作者或关键词跨多个来源搜索图书
- 从Google Books API返回完整的图书描述
- 提供直接的亚马逊购买链接
- 如有可用内容,显示Heardly摘要
- 支持多个图书来源(Heardly、Google Books、Open Library)
- 默认返回用户友好的格式化文本
使用场景
当用户提出以下问题时使用此技能:
- - 你有凯文·凯利的书吗?
- 在哪里可以买到关于幸福的书籍?
- 搜索关于机器学习的书
- 帮我找找埃隆·马斯克写的书
- 有哪些关于人工智能的书?
安装
bash
clawhub install amazon-books
用法
javascript
const AmazonBooksSkill = require(amazon-books);
const skill = new AmazonBooksSkill();
// 搜索图书(返回格式化文本)
const result = await skill.searchBooks({
query: Kevin Kelly,
limit: 5
});
console.log(result); // 可直接阅读的文本输出
输出
格式化文本包含:
- - 书名、作者、描述
- 亚马逊购买链接
- Heardly摘要(如有)
- 可直接展示给用户
数据来源
- 1. Heardly数据库(5904本书)— 最快,本地存储
- Google Books API(免费,数百万本书)
- Open Library API(免费,开源)
- 亚马逊搜索链接(无需API)
许可证
MIT