返回顶部
c

clawdibleAudible管理

Search, browse, and manage Audible audiobooks. Use when the user wants to search for audiobooks on Audible, view their library, get book details, purchase a title, or manage their wishlist. Triggers on phrases like "find audiobook", "buy audiobook", "what's in my Audible library", "search Audible for", "add to wishlist". Requires one-time auth setup.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.1
安全检测
已通过
101
下载量
免费
免费
2
收藏
概述
安装方式
版本历史

clawdible

Clawdible

通过 audible Python 库(非官方 API)管理 Audible。支持跨平台运行——macOS、Linux、Windows。

依赖项

两个脚本在首次运行时通过 pip 自动安装依赖:

  • - audible — 非官方 Audible API 客户端
  • httpx — HTTP 客户端

无需手动执行 pip 安装。

定位脚本

在运行时解析技能目录:

bash
SKILL_DIR=$(python3 -c
import subprocess, json
skills = subprocess.check_output([openclaw, skills, --json], text=True)
for s in json.loads(skills):
if s[name] == clawdible:
print(s[path]); break
2>/dev/null || find ~/.openclaw -name audible_cli.py -path /clawdible/ 2>/dev/null | head -1 | xargs dirname)

SCRIPT=python3 $SKILLDIR/audiblecli.py
AUTH=python3 $SKILLDIR/audibleauth.py

或者使用 OpenClaw 加载此技能时提供的路径(可作为技能目录使用)。

设置(一次性)

认证信息存储在 ~/.config/audible/auth.json(权限为 600)。

步骤 1 — 生成登录 URL:
bash
python3 audible_auth.py --locale us

将 URL 发送给用户。用户可在任何设备上打开该 URL 并登录亚马逊。

步骤 2 — 登录后,亚马逊重定向至 https://www.amazon.com/ap/maplanding...。用户粘贴该 URL:
bash
python3 audible_auth.py --callback <重定向 URL>

验证:
bash
python3 audible_cli.py status

地区选项: us、au、uk、de、ca、fr、in、it、jp、es
认证文件中的 locale_code 会自动检测;如有需要可使用 --locale 覆盖。

命令

所有命令均接受 --locale LOCALE 和 --json 参数。

bash

认证状态


python3 audible_cli.py status
python3 audible_cli.py status --locale us

搜索目录

python3 audible_cli.py search 火星救援 python3 audible_cli.py search 安迪·威尔 --limit 5 --locale us

查看库

python3 audible_cli.py library python3 audible_cli.py library --limit 50

获取书籍详情

python3 audible_cli.py info B08G9PRS1K

购买(需要显式 --confirm — 务必先与用户确认)

python3 audible_cli.py buy B08G9PRS1K --confirm

心愿单

python3 audible_cli.py wishlist python3 audible_cli.py wishlist add B08G9PRS1K

工作流程

典型的搜索与购买流程:

  1. 1. search — 搜索标题,记录 ASIN
  2. info — 确认正确的版本/朗读者
  3. 与用户口头确认购买
  4. buy --confirm — 执行购买

未经用户明确确认,切勿运行 buy 命令。

市场

  • - 从认证文件自动检测地区
  • 需要时使用 --locale 覆盖(例如用户账户为美区但位于澳大利亚)
  • API 失败时的备用购买 URL:https://www.audible.com/pd/(根据地区调整域名)

错误处理

错误原因解决方法
无认证文件未设置运行 audibleauth.py
401/403
令牌过期 | 重新运行 audibleauth.py | | 404 | ASIN 或地区错误 | 尝试不同的 --locale | | 429 | 请求频率限制 | 等待后重试 | | 购买失败 | API 被屏蔽 | 向用户发送手动 URL | | 认证时 InvalidValue | 验证码过期 | 重新开始认证流程 |

注意事项

  • - audible 库为非官方库——亚马逊可能随时更改其 API
  • 认证令牌通过设备私钥自动刷新;仅当设备被注销时才需重新认证
  • 认证文件权限为 600(仅所有者可读写)

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 clawdible-audiobooks-1776083055 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 clawdible-audiobooks-1776083055 技能

通过命令行安装

skillhub install clawdible-audiobooks-1776083055

下载

⬇ 下载 clawdible v1.0.1(免费)

文件大小: 8.53 KB | 发布时间: 2026-4-14 10:02

v1.0.1 最新 2026-4-14 10:02
clawdible-audiobooks v1.0.1

- Updated documentation for improved clarity and completeness about setup, dependencies, and usage.
- Expanded instructions for cross-platform compatibility, script auto-location, and dependency handling.
- Clarified command examples, workflows, and error causes/fixes.
- Enhanced usage trigger phrases and user guidance for all key features.

Archiver·手机版·闲社网·闲社论坛·智能体自动化市场· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2026 闲社网·AI智能体论坛·AI自动化解决方案·http://xianshe.com

p2p_official_large
返回顶部